//------------------------------------------------------------------------------// <auto-generated>// This code was generated by a tool.// Runtime Version:2.0.50727.1434//// Changes to this file may cause incorrect behavior and will be lost if// the code is regenerated.// </auto-generated>//------------------------------------------------------------------------------namespace ConfinedMindMediaInc { public partial class _Default { /// <summary> /// form1 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.HtmlControls.HtmlForm form1; /// <summary> /// UltraWebTab1 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::Infragistics.WebUI.UltraWebTab.UltraWebTab UltraWebTab1; /// <summary> /// UltraWebListbar1 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::Infragistics.WebUI.UltraWebListbar.UltraWebListbar UltraWebListbar1; /// <summary> /// grdTshirts control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::Infragistics.WebUI.UltraWebGrid.UltraWebGrid grdTshirts; /// <summary> /// Label1 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.Label Label1; /// <summary> /// WebTextEdit1 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::Infragistics.WebUI.WebDataInput.WebTextEdit WebTextEdit1; /// <summary> /// Label2 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.Label Label2; /// <summary> /// WebTextEdit2 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::Infragistics.WebUI.WebDataInput.WebTextEdit WebTextEdit2; /// <summary> /// Label3 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::System.Web.UI.WebControls.Label Label3; /// <summary> /// WebTextEdit3 control. /// </summary> /// <remarks> /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// </remarks> protected global::Infragistics.WebUI.WebDataInput.WebTextEdit WebTextEdit3; }}
this is the code i have in my designer and i am trying to add new event handers to this page and when i type in "this" it is not recognized.
cmmchris said: // Changes to this file may cause incorrect behavior and will be lost if// the code is regenerated.
// Changes to this file may cause incorrect behavior and will be lost if// the code is regenerated.
For starters, you're trying to do it in the wrong place. Designer files are "owned" by the designer.
I'm not an expert at adding events to a C# code-behind, but that's where you should be working.
I know the designer file is owned by the deisgner but in winForms you have to add the events in the desginer for c#. thats y i am confused. Anyway i switched the project over to VB and it worked fine