The scroll bar is not appearing in the panel control - Please help me !

A

Anand Ganesh

Hi All,

I am trying to draw a picture in a panel control. It is drawing up
correctly.

When the picture size is greater than the panel control, I am expecting
horizontal and vertical scroll bars to draw up but for some reason it is not
appearing.

I have set Autoscroll = true and even the margin values for scroll but the
scroll bars are not appearing.

What am I missing? Any suggestions please.

Thanks for your time.

Regards
Anand Ganesh
 
D

Dmitriy Lapshin [C# / .NET MVP]

Hi,

Try host a PictureBox control inside the panel. Leave the panel's AutoScroll
property as True, and set the PictureBox's AutoSize property to true. Now,
use the PictureBox and not the Panel to display pictures.
 

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