Solved

vb.net picturebox too small

Posted on 2006-07-13
7
433 Views
Last Modified: 2010-04-23
For some reason, I am only seeing the top left corner of my picture in my picturebox.

Any suggestions?

the image is bigger than that, and so is the picturebox
0
Comment
Question by:jackjohnson44
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 6

Expert Comment

by:carmodyk
ID: 17102715
On the behavior section of the your picturebox properties, set the sizeMode to StreatchImage.
0
 

Author Comment

by:jackjohnson44
ID: 17102744
I tried that, I don't want to stretch it, it is just showing a small piece of the image, the left corner.
When I stretch it, it shows the same small piece, just stretched.
0
 
LVL 6

Expert Comment

by:carmodyk
ID: 17102763
What format is the picture in?  Just for laughs, change the picture format to something else, like .BMP or JPG.
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 6

Expert Comment

by:carmodyk
ID: 17102774
Or just try another picture, see if you get the same results.
0
 
LVL 8

Accepted Solution

by:
Shakti109 earned 400 total points
ID: 17102784

Are you getting the image from an imagelist?

If so, they have default size attributes of 16x16.

Increase the Imagesize width and height to the size of the image itself (in pixels).
0
 

Author Comment

by:jackjohnson44
ID: 17102842
I just figured it out when I added them to my image box, I didn't specify the correct size.

Thanks for your help.

Is there a reason to use a image box?

I don't know where they will be at runtime, I don't want to have to include them on the clinets machine in a directory.

0
 
LVL 6

Assisted Solution

by:carmodyk
carmodyk earned 100 total points
ID: 17102861
No, you'll be fine.  Once an image has been added to the form via a picturebox, it's going to stay with the form.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question