Jump to content

maximized forms please help;

- - - - -

  • Please log in to reply
2 replies to this topic

#1
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
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
wwarren

wwarren

    Learning Programmer

  • Members
  • PipPipPip
  • 60 posts
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

#3
Paulo_Jorge

Paulo_Jorge

    Learning Programmer

  • Members
  • PipPipPip
  • 54 posts
humm, the answer is the Anchor property


thanks, for the asnwer and for the tutorial




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users