473,671 Members | 2,248 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 985
"karim" <ka***@discussi ons.microsoft.c omschrieb
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...@discussi ons.microsoft.c omwrote:
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
1444
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 moved by the horizontal one). So I built a Pmw.ScrolledFrame() containing the 2 canvases, horizontally scrollable. Now I am trying to build 2 independent vertical scrollbars,
3
9891
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 that I can enable vertical or horizontal scrollbars for the textbox and their wrapping but thats it for modifications of the scrollbar.
1
2940
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 disappears and all my content resizes, which obviously I don't want. I know I can use overflow: auto on the div, but that shows a horizontal scrollbar as well, and I don't need that - and because it's obvious I don't
0
1110
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 important values associated with the scrollbar (the properties .Minimimum, .Maximum, .Value, .SmallChange) etc. For example, a multiline textbox - I want to know the current scrollbar position so I can calculate and print a rough position (a...
22
2347
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 the user autoscrolls the usercontrol (other things that are on the usercontrol I want to scroll, but haven't included any here). Here are the steps to reproduce my problem. 1. Launch Visual Studio and create a new Windows application with...
0
1031
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. The picturebox sizemode is set to AutoSize and StretchImage An image of size 400x400 is loadeded into the picturebox. Everything works as expected. I have also added the following code (see end of message). The pagedown does shift the visible...
14
3945
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 using frames...) The main frame has to show a vertical scrollbar if content is bigger than one display page. This works well, but:
1
1651
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 want the scollbar within the ListBoxControl, how can that be done? Please help, thanks in advance.
4
1419
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
4958
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 successive folder in the format Pic#, i,e. Pic1, Pic2 etc. What I want to do is make a slider that is attached to a label which would output the slide number that is being looked at. I would use that number then to return the image of the slide...
0
8476
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8821
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8670
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7437
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5696
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4225
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4407
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2051
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.