473,513 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

scrollbar question...

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...
Oct 14 '08 #1
2 981
"karim" <ka***@discussions.microsoft.comschrieb
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

Oct 14 '08 #2
On Oct 14, 9:55*am, karim <ka...@discussions.microsoft.comwrote:
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
Oct 14 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1433
by: Marion | last post by:
Hello. I am using Tkinter and Pmw. I would like to build 2 canvases/frames that are scrollable together horizontally, and independently vertically (so, the vertical scrollbars should not be...
3
9878
by: buht | last post by:
Hello Everyone, Fairly new to c# here and have a question regarding scrollbars, particularly a vertical scrollbar. It looks like my options are restricted for the textbox scrollbars being...
1
2933
by: dhnriverside | last post by:
Hi guys I'm using a div to create a list with ajax stuff. At the moment, the div shows a scrollbar if the content is larger than the div. The problem is that if it isnt, the scrollbar...
0
1097
by: Antony | last post by:
Hi - another scrollbar question. If I have a control on a form, and that control has scrollbars showing, and the scrollbars were put there by the control and not by me, how do I get the...
22
2330
by: Colin McGuire | last post by:
I apologize for posting yet another scrollbar question. Here is my code. All I want is for a diagonal line to appear from coordinates (0,0) to (width,height) in a usercontrol regardless of whether...
0
1016
by: Ron Dahl | last post by:
I have a form containing a panel and a picturebox inside the panel. The form load code changes the panel size to 400x400 and the picturebox size to 800x800 Autoscroll on the panel is set to true....
14
3932
by: Michael Weis | last post by:
Hello all, as a non-professional in these things, I searched for this topic but found no satisfying answer: I have to create a site with 3 frames. (Please no diskussion about the sense of...
1
1646
by: Mae Lim | last post by:
Hi all, I have a question, how can I add an horizontal scrollbar to a listbox control? I have tried "overflow:scroll;" using <divbut the scrollbar will be display outside of the listbox. I...
4
1411
by: Peter Oliphant | last post by:
Although the ScrollBar class has BackColor and ForeColor properties, these properties don't seem to have any effect. Is this correct? If so, is it possible to change the color of a ScrollBar?
3
4926
by: Nebulism | last post by:
Hi everyone, I am working on a module for my GUI that shows one image with an index value below and would use a scrollbar to control which of the images are displayed. The images are stored in a...
0
7260
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7162
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7539
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7101
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7527
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3223
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1597
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.