Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control auto resizes when it's width is less than 10

Status
Not open for further replies.

sammye

Programmer
Oct 5, 2007
35
US
Hello,

I am curious if anyone knows why my controls automatically resize themselves after I change the height within the designer while on a form. This is only the case when the control width is less than 10 (pixels I think).

For example, if I add a button to my form and manually change its width to 5 within the properties the button is now 5 wide. However, if I then try to resize the button by dragging the corners the width automatically gets changed to 10 and the only way I can get it back to 5 is to manually change it within the properties again.

Any ideas if there is a way to change this behavior? I've tried changing the snap to grid option, but that did not fix anything. As info, I'm using VS2005, version 8 with a c# project. Thanks.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top