DotNet Coder
DotNet Coder

Reputation: 51

Groupbox with Panel

I have a groupbox, inside which I have added a panel. The Panel contains 3 labels. The intended functionality is that as the text on the label increases, the Panel shows the Scrollbar. However, its not happening. I have tried a lot, with panel inside and outside the groupbox. Setting the MaxSize of labels and setting off the AutoSize but all in vain. P.s. The AutoScroll property is set to true.

Please suggest any wayout.

Upvotes: 1

Views: 1549

Answers (1)

MoonKnight
MoonKnight

Reputation: 23833

All you need to do is set the panel's AutoScroll property to true.

myPanel.AutoScroll = true;

I hope this helps.


Extension: You seem sceptical. Here is an image of the form with just want you want. All I did was do the above.

As Above

Upvotes: 2

Related Questions