473,387 Members | 1,512 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,387 software developers and data experts.

Scrollable picturebox

Hi,

I want a scrollable picture box in my application. But picture box can't have auto scroll property on its own. So in order to get scroll for my picture box i placed it in a panel. And set the auto scroll proeprty of the panel to true. And the picture box size mode property to auto size mode. If i follow this approach, if the image size is bigger than picture box size then only its showing the scroll. On other scenarios, scroll is not visible. But i want scroll for the picture box, any time even though image size is bigger or smaller.

Any suggestions will be greatly appreciated..............
Jan 24 '07 #1
5 2339
kenobewan
4,871 Expert 4TB
So you tried the overflow:auto style suggestion from your last post? If this isn't what you want try overflow:scroll and post the results here rather than reposting.
Jan 24 '07 #2
Thank u for ur reply.

But im not getting wat ur saying. I set the sizemode property of the picture box to autosize. wat is overflow setting. The previous discussion is the one which i posted in the morning. Then wat abt reposting.........
Jan 24 '07 #3
radcaesar
759 Expert 512MB
Create a panel

Set the panel AutoScroll property to True

Create a picturebox inside the panel at location top and left to 0

Set Image property of the picturebox to the image that should appear in the picturebox

Sizemode property of the picturebox must be set to Normal

In the FormLoad
Me.PictureBox1.Size = Me.PictureBox1.Image.Size

---
RadC
Jan 24 '07 #4
Hi,

Thanks for ur reply. I tried ur suggestion but im not getting the required functionality .....
Jan 24 '07 #5
kenobewan
4,871 Expert 4TB
Basically, you give the panel an overflow style of scroll, rather than auto, using CSS.

Reposting is where you start a new thread with a question that you have already asked. Moderators may remove your post if they decide that this is what you are doing - see FAQs
Jan 24 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header |...
0
by: crwng | last post by:
I'm trying to make a picture scroll within a panel on a Windows CE device. However, when I add a panel and try to set its autoscroll property to "true", the property seems to be missing. All the...
0
by: Geoff B via .NET 247 | last post by:
I have a form that displays images using a picturebox. Theseimages are usually too large to fit in the entire screen so iwould like to panel to be scrollable with the mouse. On my form I have 2...
6
by: allanc | last post by:
i tried using a borderless form + picturebox, which works fine for dimensions smaller than the actual screen dimensions, but for larger sizes the window seems to clip. programs like acdsee seem...
1
by: Msqln | last post by:
Hi I made a form with picturebox and scrollbars. However, scrollbars react to arrow keys. What I would like is that scrollbars react only to mouse. Is there a way to ignore keyboard for...
5
by: Brian Henry | last post by:
Hello, I want to make a control that has a scrollable Gantt type display (not really one but will look similar to one) this is going to be custom drawn (i already have the drawing procedure...
2
by: Ben H | last post by:
Hello all I'm using a listview in my app but I want to scroll the listview programatically as I hate the look of the standard scrollbar. So, the listview is scrolled programatically using...
3
by: jediknight | last post by:
Hi, I have a scrollable view which contains a picturebox. I need to get the location of the top let hand corner of the view so I can draw an icon. When the picturebox is scrolled vertically I...
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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...

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.