Solved

vb.net picturebox too small

Posted on 2006-07-13
7
416 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

895 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now