location of a control

G

Gonzalo Rodriguez

Hi;
e-mid said:
i have button at the left bottom corner of the form
whenever i resize the form, i want to the button stay at the same place.
does button have property for this doing this?

Use the Anchor property,

By code:

this.button1.Anchor =
((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bott
om | System.Windows.Forms.AnchorStyles.Left)));
It's easier using the property window.



Gonzalo Rodriguez
 
E

e-mid

i have button at the left bottom corner of the form
whenever i resize the form, i want to the button stay at the same place.
does button have property for this doing this?
 
M

Mark Broadbent

you need to use the anchor property to bottom right.

--


Br,
Mark Broadbent
mcdba , mcse+i
=============
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top