Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User control re-size automatically at run time

I have a user control that has label and text box but i can't determine why they are always re-sizing during runtime. Here are the snap-shot:

design time

run time

as you can see...the objects has been resize and the spacing has been change. I dont think that it has to do with my code...Is it only the settings of vb.net? Please help.

like image 621
illumi Avatar asked Dec 08 '22 22:12

illumi


1 Answers

Please check the value of the Anchor property in your textboxes, labels and buttons inside the user control. Probably is set to maintain the distance from the Right border of their container (the usercontrol)

like image 99
Steve Avatar answered Dec 29 '22 10:12

Steve