scrollbar question...

  • Thread starter Thread starter karim
  • Start date Start date
K

karim

Hi All,
I have an app. to view pictures from a certain folder, but it's not
showing the full image. I think adding a scrollbar to the form would solve
the problem. but I need some help with the code. I never had to use
scrollbars before. any help would be great. thanks...
 
karim said:
Hi All,
I have an app. to view pictures from a certain folder, but it's
not showing the full image. I think adding a scrollbar to the form
would solve the problem. but I need some help with the code. I never
had to use scrollbars before. any help would be great. thanks...

Does the app show several pictures at a time or only one? In both cases you
can put the picturebox(es) into a Panel and set the Panel's AutoScroll
property = True.


Armin
 
Hi All,
   I have an app. to view pictures from a certain folder, but it's not
showing the full image. I think adding a scrollbar to the form would solve
the problem. but I need some help with the code. I never had to use
scrollbars before. any help would be great. thanks...

As far as i understood, the image is larger than your form or screen,
so you're not able to view the whole image. In that case, you can use
a Panel control and place Picturebox on that panel, as an additional
feature, you can drag / pan the image to move using mouse like by
manipulation MouseMove / Down events like in that article:

http://69.10.233.10/KB/vb/PanExample.aspx

Hope this helps,

Onur Güzel
 
Back
Top