bklare

When I add custom controls I create into another form or custom control then sometimes after compiling when I re-enter the design view that control is removed, moved or changed. This is enormously frustrating because I have to go back and change all the settings that designer decided to change manually. This is in Visual Studio 2003, Visual C# .Net 1.1. Any ideas why this is happening



Re: Visual C# IDE Design View changing form layout and control values

sirjis

I think this is a bug/multiple bugs in VS2003. After having run into having everything on a large complicated form deleted twice, I no longer use the designer in VS2003 for any forms having many controls. Well, I use the designer until I get something I like, then I cut all of the code in InitializeComponent to another function (InitComponent or something). After that, I'll go through and organize the code initializing different panels into different functions, since otherwise it's really difficult to add controls since all of the initialization seems to be not well sorted as the designer makes it. The code ends up being quite a bit cleaner, but it is harder to work with.

I've heard VS2005 doesn't have nearly as many problems with this.





Re: Visual C# IDE Design View changing form layout and control values

bklare

Yeah, that is what I feared. I do pretty much what you do to work around it. I use VS2005 at home and I do no get the problems there as well. Anyways, thanks for confirming this, and what a terrible bug. There is nothing more frustrating as a programmer then your code being changed by an IDE.