I tried listBox1.Anchor = AnchorStyles.Right;
listBox1.Anchor = AnchorStyles.Bottom;
listBox1.Anchor = AnchorStyles.Top;
listBox1.Anchor = AnchorStyles.Left;
And it still being cut off when resizing the form...
Don't understand..
It sounds like, for example, you have some controls on the left side of the
form and a list box on the right side of the form. When you make the form
narrower, you want these controls to resize proportionately so that they all
remain visible. I don't think you can do this with the Anchor property;
instead I believe you either need to use one of the layout controls that
were introduced in Windows Forms 2.0, like FlowLayoutPanel or
TableLayoutPanel, or else you'll need to do it the old-fashioned way and
write resizing code yourself. I've never used the two controls I just
mentioned, so I can't tell you much about them or if they'll even work. I
can tell you that the "manual" approach always works, but it's definitely
more effort.