Solved

vb.net picturebox too small

Posted on 2006-07-13
7
410 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
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

759 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

23 Experts available now in Live!

Get 1:1 Help Now