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

  • Thread starter Thread starter Anand Ganesh
  • Start date Start date
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
 
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.
 
Back
Top