Home All Groups Group Topic Archive Search About
Author
22 May 2009 2:15 PM
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

Author
22 May 2009 3:13 PM
Armin Zingler
Co wrote:
> 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
Author
22 May 2009 3:13 PM
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

Show quoteHide quote
"Co" <vonclausow***@gmail.com> wrote in message
news:13b35126-562f-4c43-abc5-f5dda9eb875e@k38g2000yqh.googlegroups.com...
> 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