?
Solved

vb.net picturebox too small

Posted on 2006-07-13
7
Medium Priority
?
442 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 1600 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 400 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

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.

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 …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

719 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