Hello,
I'm having trouble getting my UserControl to fit snuggly in my panel. Here's a screen shot of what it looks like:
The UserControl is in red and the panel I'm trying to fit it onto is in grey (the white is a ListBox in my UserControl). As you can see,
it's going off the right edge of the Form.
I have these settings for both the panel and the UserControl:
AutoSize: true
AutoSizeMode: GrowAndShrink
Anchor: AnchorStyle.Left | AnchorStyle.Top | AnchorStyle.Right
Dock: DockStyle.Top
But for some reason, either the panel or the UserControl doesn't want to shrink down to the appropriate size.
Any help would be very much appreciated.
I'm having trouble getting my UserControl to fit snuggly in my panel. Here's a screen shot of what it looks like:
The UserControl is in red and the panel I'm trying to fit it onto is in grey (the white is a ListBox in my UserControl). As you can see,
it's going off the right edge of the Form.
I have these settings for both the panel and the UserControl:
AutoSize: true
AutoSizeMode: GrowAndShrink
Anchor: AnchorStyle.Left | AnchorStyle.Top | AnchorStyle.Right
Dock: DockStyle.Top
But for some reason, either the panel or the UserControl doesn't want to shrink down to the appropriate size.
Any help would be very much appreciated.