Windows Develop Bookmark and Share   
 index > Windows Forms General > position of my controls change
 

position of my controls change

On my form I have some groupboxes and a property grid.one groupbox is aligned to the bottom of the property grid. Now when I debug my form, the groupbox is about 20 pixels lower. The property grid stays the same. I have no idea why my groupbox is repositioning itself. I don't have any code that repositions the groupbox. Any ideas?

I am using vb8.
Troy Lundin  Monday, June 19, 2006 9:43 PM
Is you groupBox docked to the bottom of your form? Or is your groupBox is somewhat anchored?

Check both Anchor and Dock properties of your groupBox, make sure that these properties are not initialized to something else than None.

Regards,

-chris
Chris Vega  Tuesday, June 20, 2006 9:36 AM
It's an annoying "feature" of VS. Try closing all form(Design View) then rebuild the solution. Try re-openning your form after a successful build.
JRQ  Tuesday, June 20, 2006 3:06 PM
Is you groupBox docked to the bottom of your form? Or is your groupBox is somewhat anchored?

Check both Anchor and Dock properties of your groupBox, make sure that these properties are not initialized to something else than None.

Regards,

-chris
Chris Vega  Tuesday, June 20, 2006 9:36 AM
It's an annoying "feature" of VS. Try closing all form(Design View) then rebuild the solution. Try re-openning your form after a successful build.
JRQ  Tuesday, June 20, 2006 3:06 PM

You can use google to search for other answers

Custom Search

More Threads

• ShowDialog returning a Cancel result immediately. Reason?
• Problem customizing a PrintPreviewDialog
• Multi line Column Header in datagrid, winapp .net
• Problem with LoadImage API in vb
• Intercepting mouse click on GDI+ drawing
• background image on Listbox and Text box
• Create a map with selectable areas...
• Where does ToolStripManager store data
• Handler for TreeView AfterSelect Event not Called
• Problem detecting changes on parent-child bindingsource