i want to run my app maxmized; i know how to do that(changing the properties or coding); but i want to put the objects in there scaled with the form;
how can i do that??
for example: i have a form with the size(300,300) with a button in the bottom left corner ;i put the window state property MAXIMIZED and the window comes maximized for sure, but the button doesn't stay in the bottom left corner, ir stays int the normal position.
i want to fix that
thanks
2 replies to this topic
#1
Posted 23 April 2011 - 01:51 PM
|
|
|
#2
Posted 24 April 2011 - 05:23 AM
Using the Anchor property of the Button (or ANY control) is the best way to ensure that it scales properly.
You would want to set the anchor property of your button to Bottom, Left to make sure it stays there.
There is a great tutorial here that also explains the Dock property: Manage WinForm controls using the Anchor and Dock properties | TechRepublic
You would want to set the anchor property of your button to Bottom, Left to make sure it stays there.
There is a great tutorial here that also explains the Dock property: Manage WinForm controls using the Anchor and Dock properties | TechRepublic
#3
Posted 24 April 2011 - 05:51 AM
humm, the answer is the Anchor property
thanks, for the asnwer and for the tutorial
thanks, for the asnwer and for the tutorial
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









