Panel with lots of custom controls not showing scrollbar until res

G

Guest

I have a form with a panel. On that panel I am adding a bunch of
usercontrols . I add the controls when in the forms constructor.

The panel has autoscroll set, and when I resize the form the panel scroll
shows up.

But when I first show the form, there is no scrollbar on the panel.

How do I make the panel show the scroll bar when the form appears.

Thanks,

B Maxey
 
K

Kevin Yu [MSFT]

Hi B Maxey,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to show the scroll bars of
panel when the form first appears. If there is any misunderstanding, please
feel free to let me know.

As far as I know, the scroll bars of the panel control shows when the
controls in the panel are out of the panel. So when the form initializes,
all the controls are shown in the form and the scroll bars will not appear.
I think it is the designed behavior of Panel control.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top