I am embedding a form into a panel control using pnl.Controls.Add(form);
This works pretty well, however there is one problem.
The panel can resize, so there are cases when the panel size is smaller than
the form embeded in it. The framework handles this problem by showing only a
piece of the form that fits in the panel. Is there a way to add scroll bars
to the panel so that the user can view the entire embedded form without
resizing the panel?
Is there any piece of code that handles this whole situation?
Thank you
Cezar Mart
Scott Wylie - 22 Apr 2005 22:34 GMT
The property 'AutoScroll = True' on the panel should do it for you.
> I am embedding a form into a panel control using pnl.Controls.Add(form);
> This works pretty well, however there is one problem.
[quoted text clipped - 6 lines]
> Thank you
> Cezar Mart