Windows Develop Bookmark and Share   
 index > Windows Forms Designer > VS 2005 Bug - Split Container and Tab Control
 

VS 2005 Bug - Split Container and Tab Control

I keep running into this bug and its killing me. Every so often, when I have multiple split containers in a tab control (sometimes with one split container containing other split containers) the form will become all mixed up after a save. Here's an example:

Form Pic

Is this a known bug? Is there a fix? I've lost hours of work because of this and it is really making life difficult.....

Thanks.

ck

CrowKing  Saturday, March 14, 2009 6:08 PM
I found the problem and it is definately a bug in the IDE's autogenerated code. I recreated the form to avoid editing the autogenerated code and got the same problem (after an hour and half of laying out the controls again, ugh).

I believe it occurs when you rename a split panel contained within another split panel which iswithin a tab, after you've already renamed it from SplitContainer1 (ie rename it a second time), but press Escape while renamingit the second time. I believe this is the point at which it occurs,butI'm not sure because the form continues to look OK in the designer, even after the code gets whacked.It also doesn't do it every time as I have multiple instances of this scenario in the form but it didn't do it for all of them, only when I renamed them.

It also did something else that was weird. I have multiple list views in the form and the bottom 1/8 inch or so of column header of the currently selected list veiw in the designer turns orange after the code gets whacked. I have no clue as to what causes this.

Are there any guidelines for editing autogenerated code or are we left to our own devices? I have nothing to lose at this point, so what the heck.

ck
CrowKing  Sunday, March 15, 2009 3:03 AM

You can use google to search for other answers

Custom Search

More Threads

• Visual Studio Form Designer Error
• Application not allows to modify a custom numeric property (sorted using CodeDomSerializer)
• Switching form
• new to XML ..Write XML How ?? [:(]
• VB 2008 Create Buttons at Runtime with Event Handlers
• How to modify the ToolBoxItem.CreateComponentsCore defaultValues parameter
• Custom properties in application hosted designer
• Slider???
• I don't know how to deserialize multiples objects from a binary file - help!
• Unable to run a VB 2008 program after changes are made without being forced to save it.