473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

How to attach a scroll bar to a picturebox

MJ
as topic, anyone can provide some codes that enable a scroll bar to a picturebox when the picture expand?

Nov 20 '05 #1
4 1646
Cor
HI MJ,

Start first with looking what autoscroll = true on your form will do for
you.

I hope that helps?

Cor
as topic, anyone can provide some codes that enable a scroll bar to a picturebox when the picture expand?

Nov 20 '05 #2
Hi,

I would place the picturebox on a panel. I would set the autoscroll
of the panel to true. The panel will handle the scrolling for you if the
picturebox is bigger than the panel.

Ken
--------------
"MJ" <an*******@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
as topic, anyone can provide some codes that enable a scroll bar to a
picturebox when the picture expand?

Nov 20 '05 #3
* "=?Utf-8?B?TUo=?=" <an*******@discussions.microsoft.com> scripsit:
as topic, anyone can provide some codes that enable a scroll bar to a
picturebox when the picture expand?


You can add the picturebox control to a panel control with 'AutoScroll'
= 'True'. If the pixturebox gets larger than the panel, scrollbars will
be showed. The picturebox provides a 'SizeMode' property which allows
you to specify the size mode.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Use Crazy Glue,

but in case that does not work, pub the picture and the scroll bar inside a
panel

francisco

"MJ" <an*******@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com...
as topic, anyone can provide some codes that enable a scroll bar to a picturebox when the picture expand?

Nov 20 '05 #5

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

Similar topics

1
by: Anand Ganesh | last post by:
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...
3
by: Alberto | last post by:
I'm trying to load an image in a PictureBox but I want the PictureBox has always the same size and if the image is bigger, show a scrollBars. How can I do it? Thank you
0
by: 6tc1 | last post by:
Hi all, I have a class (call it class A) that extends UserControl (there is no reason that this couldn't extend Panel). I have a few PictureBox objects in class A. When I increase the size of the...
1
by: Dica | last post by:
i've got an image too large to fit inside my picture control. how do i get horizontal and vertical scroll bars?
4
by: midicad2001 | last post by:
I have been researching this issue and have come across a number of solutions apparently written for VB5 or 6 and don't work under .NET, yes folks that is progress! Someone in this ng suggested...
7
by: Sharon | last post by:
I’m using the Panel control that contains a PictureBox control (for implementing the http://www.codeproject.com/cs/miscctrl/PictureBox.asp). The Panel is set to AutoScroll = true. I wish to...
1
by: id86 | last post by:
Hello everybody! I've a problem with MouseMove event in a C# project using Visual Studio 2005. This is my situation: there is a PictureBox (bigger than the panel in which it is) and I want that,...
0
by: swagatikasahoo | last post by:
how to display all lines if i will scroll the picturebox. hi, ok i m sending the code. ****************************************************** Private Sub PictureBox1_Paint(ByVal sender As Object,...
4
by: delorian0815 | last post by:
Hi, I programmed a windows forms application. it contains several pictureBoxes, each showing the first picture in a folder. When the mouse is over the pictureBox and you turn your mousewheel, it...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.