Solved

vb.net picturebox too small

Posted on 2006-07-13
7
422 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

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…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

777 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