Question Controls - Auto-Justification

kumaraswamy

Member
Joined
Jul 24, 2009
Messages
12
Programming Experience
1-3
Hi
I am new to using VB for creating forms with labels and text-boxes.
For my forms, I am using WindowState "Maximized". But I am unable to automatically center-justify my buttons and other controls. For example, in my Form1.vb [Design], I have the button at the bottom-center, but during debug when the forms opens in maximum size, my button is not automatically going to bottom-center but is there in the same place relative to the small form I used while designing. I hope I have made my problem clear. I am sure there is a simple fix to it but I am not able to figure out in my control-properties. Could someone point it?

Thanks a lot!
Kumar:confused:
 
If you look in the Properties Window when your button is selected you will see, near the bottom, a property called Anchor. This property is set by default to Top, Left, change it to Bottom and it will stay in place relative to the bottom of its parent, rather than than to the Top-Left, which it is doing at the moment.
Play around with the various options so that you get familiar with the results.
 
Back
Top