Hi Al,
A wild guess, were you at some time editing inside InitializeComponent() (not counting when you added them back)?
> In VS2005 after I saved my project, the next time I opened it, the main form
> was missing all its controls. I had placed 3 buttons and a label on the
[quoted text clipped - 10 lines]
> Once I added these lines back in and rewired the event handlers, everything
> worked fine as before. Any ideas what may have caused this?

Signature
Happy coding!
Morten Wennevik [C# MVP]
Al Cadalzo - 27 Jan 2006 11:21 GMT
Morten,
I wasn't editing inside InitializeComponent() but I was using the Properties
window to hookup the button event handlers. Could that have caused it?
> Hi Al,
>
[quoted text clipped - 17 lines]
>> everything
>> worked fine as before. Any ideas what may have caused this?
Morten Wennevik - 29 Jan 2006 11:16 GMT
Using the properties window is the best. If you edit inside InitializeComponent you run the risk of Visual Studio overwriting your changes leading to unexpected behaviour. Not sure why you get that error.
> Morten,
> I wasn't editing inside InitializeComponent() but I was using the Properties
[quoted text clipped - 25 lines]
>> Happy coding!
>> Morten Wennevik [C# MVP]

Signature
Happy coding!
Morten Wennevik [C# MVP]