I have a winform usercontrol with several items (textboxes, buttons,…). Now I am confronted with phenomenon, that all items are suddenly away (in the VS 2010 designer view / document outline), although in the control designer file (designer.cs) the textboxes, buttons,… are still defined. There is also no compilation error. When I run the application, the items are still missing! I have already restarted VS!
Does anybody know, what the reason for this is?
I have a winform usercontrol with several items (textboxes, buttons,…). Now I am confronted
Share
In the InitializeComponent method do all the controls get added to the form via this.Controls.Add… statements?
I know this happened with VS2003 a lot that these code lines would disappear. I suspect that this is the problem