DotNetUser 0 Junior Poster in Training

I'm using VC++.NET and drag a couple controls onto the form. When I edited the auto-generated code for a control in InitializeComponent(), the controls on the form disappears. When I tried to add them back, it complained that it's already there. Eventhough the form no longer has the controls, it does appear when I execute the code. Is there a way to bring back the controls using the auto-generated code? Or do I need to remove all the control's code and readd the controls?

Are there rules of things not to do to avoid this problem? It would take a lot of time to redo a gui that contains a lot of controls.

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.