Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Designer Problem With Visual Studio 2005
 

Designer Problem With Visual Studio 2005

Hi friends,

I have an interesting problem with Microsoft Visual Studio 2005 DESIGNER. I've created a user control it has a tab control with 3 tab pages in each tab page there are some group box .,

When I reopened my control the group boxes in 2nd and 3rd pages are resized to their half width.

I am looking to designer.cs file externally ( by notepad ):

1) Open control ( There is no change with Size in the file)

2) Resize group boxed ( There is no change with Size in the file )

3) Save and Close control ( There is a change in Size in the file which is correct)

4)Open again the control then it seems that the group box in half width but the size is correct in the file still )

5)Again close it then it changes the file

in the 4.th step designer changes the width but I couldn't understand why ?

I need very urgent help thank you

merkurgezegeni  Tuesday, October 16, 2007 12:24 PM
I have the same problem! It depends on the user control. My user control is fairly simple. It has a tablelayoutpanel and a couple of textboxes. I think the tablelayoutpanel is causing the groupbox to resize somehow. I switched from the groupbox to the panel control and it worked. Not pretty but workable.This is surely a Microsoft bug.

George One  Wednesday, November 28, 2007 11:39 PM

hey...

I encounter the same problem for a long time now... but only when my form is localized. I did not yet search for a solution because the project I am working on is quite large and havent gotten to the stage were I handle localization.

anyway, when testing I always have the problem you describe, and also only with groupboxes!

I thought it maybe had something to do with dots and commas in the regional settings, but that is not the case. Furthermore, when correcting the controls sizes is the designer it only usefull for a single build. Whenever the designer is opened again, the controls sizes changes again.

it is a really frustrating problem, i hope somebody finds the cause of it very soon....

greg_sunny  Monday, December 24, 2007 12:17 PM
I have recently run into the problem where I have a TabControl with user controls inside of it. When I open this control in designer, the designer moves user controls around and resizes some of them based on their anchors. From what I can tell, the tabcontrol area is being increased which is causing the user controls to move/resize. The only user controls that I can see that are affected by this are user controls that are placed inside a tab.

I have only recently had this problem since I've converted my .NET 1.1 project to .NET 2.0. Has anyone else that has run into this problem recently converted a project from 1.1 to 2.0? Or was your user control created in 2.0?
rreedy  Thursday, May 01, 2008 3:07 PM
I have run into this exact problem. The user controls in my case were created in .net 2.0.

Has anyone found a solution to this problem? There are similar problems posted in various threads with little to no resolution.
Noxage  Tuesday, February 03, 2009 5:32 PM
i got exactly the same problem. I've created some user controls (panel with pull up/down function). Everytime the forms designer renders the form containing these usercontrols, the size and paddings of controls inside the usercontrol-containerget modified.

Got any solution?
daJack  Tuesday, May 26, 2009 10:55 AM
I am having the same bloody issue for a long time already. This is quite annoying, especially when you have quite a large number of controls on your form, you will have to restore their sizes/locations each time you open the form in designer mode. Has anyone found a cure?
Sardor  Tuesday, June 23, 2009 6:36 AM

You can use google to search for other answers

Custom Search

More Threads

• Toolbox default tab when designing a WinForm
• frames in windows ?
• Why is VS 2003 .NET Designer mode rendering of screens so slow?
• MenuItem - drag and drop
• Using visual inheritance with the UserControl
• Validating all controls on Form
• How designer "abstract" bug can be fixed for UserControls?
• Dock Padding
• DataGridView crashes IDE when trying to access properties
• Designer Capable ImageList that uses the Resources...