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.... ..........
5 2350
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.
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...... ...
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
Hi,
Thanks for ur reply. I tried ur suggestion but im not getting the required functionality .....
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 Sign in to post your reply or Sign up for a free account.
Similar topics |
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 |
+---------------+
| body |
| (scrollable) |
+---------------+
| footer |
|
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
documentation seems to indicate that Autoscroll was excluded from the
Windows CE panel control, but given that CE is for smaller devices,
this seems terribly short-sighted.
Is there a way to add a picturebox to a panel so that when the picture...
|
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 panels, 1 docked left with some text boxesand a list on it, a splitter docked left, and then a 2nd panelset to fill. The auto scroll property is set to true on the 2ndpanel. This panel has a large colored label as a background forthe picturebox. The...
|
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 to have no trouble doing
this, how??
Thanks in advance!
|
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
scrollbars or to know if mouse has been used on scrollbar?
| |
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 completed for the overriden onpaint
event) but the problem is this can be a very long scrollable viewport (part
that scrolls inside the control) while the control will be relatively
800x600 in size)... i tried to do this with a panel scrolling inside...
|
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 ensurevisible, ie the
listview shows a maximum of 6 items and if I want to scroll down one I use
the code...
listview.ensurevisible(listview.TopItem.Index + 6)
|
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 need the icon to remain in
the top left hand corner of the view.
At the moment whenever I scroll the picturebox down, the icon gets
hidden.
Thanks in advance.
|
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 examples I found on the web. Works in IE and mozilla.
http://www.imaputz.com/cssStuff/bigFourVersion.html
|
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...
|
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,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |