views:

26

answers:

1

Some code I found online:

Font = SystemFonts.MessageBoxFont;
AutoScaleMode = AutoScaleMode.Font;
InitializeComponent();

Here's the problem; I've got a TextBox in a GroupBox in one instance, and a ListBox in a Panel in another that have their bottom edge going up to where the form editor snaps to.

But with the above code, their resized versions on my computer (running the Aero theme) extend past the boundaries of the GroupBox/Panel and get cut off, even when I have their Anchor property set as I intend.

Is there any solution to this?

A: 

Resize the controls manually.

Beth