473,480 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to view full image in the picture box of c#?

5 New Member
hello.....
can anybody let me know how to see the whole image in the picture box if the size of picture in height and width is greater that the size of picture box??
Mar 3 '11 #1
3 3327
GaryTexmo
1,501 Recognized Expert Top Contributor
There's a property on a PictureBox called SizeMode. Make sure that's set to "AutoSize". This should change your PictureBox to the size of the image.
Mar 3 '11 #2
Khushboo Modi
5 New Member
thanks for the help...
but i dont want to make the change in the size of picture box i want that if the image is big it must be shown in the picture box with the scroll bar is it possible....
plezzz let me know
Mar 3 '11 #3
GaryTexmo
1,501 Recognized Expert Top Contributor
That's not what you asked in your original post, but that's easy enough...

Put a Panel on your form and set the AutoScroll property to true. Now make sure the SizeMode is set to AutoSize on the PictureBox. When you set the image on the PictureBox, it will size itself to fully encompass the image, which will in turn fill more than the Panel can show which then automatically shows the scrollbars so you can navigate around.
Mar 3 '11 #4

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

Similar topics

2
453
by: Mansi | last post by:
I'm trying to automate Excel 2003 from Visual C# .Net. Is it possible to export an picture/image file from c# to excel? If so, how do you do this? Are there any code examples available? ...
1
8099
by: Alec | last post by:
Hi All, I am currently using an unbound OLE object to display images stored in a folder. I want to be able to print these images from their normal format (it just happens that these are A4...
0
1336
by: | last post by:
We have developed a free image-viewer for testing .Net and GDI+ capabilityes. e-View supports a lot of raster and vectorial image formats: -Bitmap (BMP) -Graphics Interchange Format (GIF)...
2
1725
by: satish | last post by:
hi, i have inserted the image present in mydocuments using alter command create table aa(a int, d image) insert into aa values (1,'F:\prudhvi\baba 002.jpg') when i do select * from aa i...
4
12811
by: NASAdude | last post by:
I'm working on distributing a database using VS Tools for Office, and am having trouble with linked images on forms/reports. The image objects have a default path\file set on the .Picture property,...
0
1202
by: Stan SR | last post by:
Hi, I use a repeater that calls a page where I display an image (sorry for my english ;) ) This page performs a webRequest to capture a jpg file And with the result I resize the picture and...
2
2496
by: vinnyrihal | last post by:
Hi all, been doing this for 3 days now - I have a group of thumbnails that have rollover, sound, and hover captions (which work fine) , what I want is to be able to click the thumbnail and it...
5
2300
by: billaiqur | last post by:
Hi, I want to view the image in my form. It relates to a combo box. Whenever i change the Form_no in the combo box. The image in the form should change accordingly. And the image viewer should...
1
1675
by: brothers | last post by:
I am intermediate user of PHP. I want to create mine search page which allows user to view one or more than one image. I can make the search page to view one image but i cannot views all the image in...
1
3442
by: sop23456 | last post by:
Microsoft Access 2003 I have hyperlink the image/picture to another file. When I click on the hyperlink, the image appears using MS Paint. What do I do to view Image/picture in Windows Picture...
0
7055
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
6920
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
7060
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
5365
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,...
1
4799
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...
0
4501
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...
0
3013
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
1311
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 ...
1
572
muto222
php
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.