anchor for buttons?

C

Co

Hi All,

I have a form with a Listview and at the bottom right two buttons.
The Listview is anchored so that when I resize the form it grows or
shrinks.
However for the buttons that doesn't work. When I resize the form the
buttons
disappear. What do I need to keep the buttons in the right place?

Marco
The Netherlands
 
A

Armin Zingler

Co said:
Hi All,

I have a form with a Listview and at the bottom right two buttons.
The Listview is anchored so that when I resize the form it grows or
shrinks.
However for the buttons that doesn't work. When I resize the form the
buttons
disappear. What do I need to keep the buttons in the right place?

Where do you want to anchor them? What's their Anchor property? If you want
to anchor them bottom right, set their anchor property to "Bottom, Right"
(how surprising ;) )

"How to: Anchor Controls on Windows Forms"
http://msdn.microsoft.com/en-us/library/8y52cxte.aspx


Armin
 
A

Armin Zingler

Co said:
Hi All,

I have a form with a Listview and at the bottom right two buttons.
The Listview is anchored so that when I resize the form it grows or
shrinks.
However for the buttons that doesn't work. When I resize the form the
buttons
disappear. What do I need to keep the buttons in the right place?

Where do you want to anchor them? What's their Anchor property? If you want
to anchor them bottom right, set their anchor property to "Bottom, Right"
(how surprising ;) )

"How to: Anchor Controls on Windows Forms"
http://msdn.microsoft.com/en-us/library/8y52cxte.aspx


Armin
 
C

Cor Ligthert[MVP]

Anchor them better and for buttons mostly on the bottom and not at the top.

As an anchor is above you it is a dangerous thing, you as Dutch should know.

:)

Cor
 
C

Cor Ligthert[MVP]

Anchor them better and for buttons mostly on the bottom and not at the top.

As an anchor is above you it is a dangerous thing, you as Dutch should know.

:)

Cor
 

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