-
Disappearing controls
Has anyone ever had a problem with controls disappearing off of forms when you compile the project? Mine is doing the same, for some reason.
The initialisation code is still in InitializeComponent, but for some reason the code that adds the control to the form is getting removed.
Any know what the problem could be? I'm using VS .NET 2003.
-
i've had similar. After deleting controls from the designer i still get the code to wire up events etc. left behind and i have to tidy it up manually.
guess its just 'one of those things' :confused:
-
Thanks for your reply, but this is different to what you describe. The compile is actually removing the controls from the form, it seems to be removing the code in the InitializeComponent function that adds the controls to the form (this.Controls.Add (..)). All the other code is left behind, and I can't work out why it is happening. :(