Solved

picturebox problem

Posted on 2010-08-14
4
596 Views
Last Modified: 2013-11-26
Greetings EE Warriors

I'm using a Picturebox control in VB.net 2010.

I want to use PictureBox1.ImageLocation tag to designate new image.

My problem is that if image 2 is smaller than image1,
the the program will crop image1 before showing image 2.
How do I avoid this?

The Background is black.
0
Comment
Question by:Evan Cutler
  • 2
4 Comments
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 33438251
Can you show us the code and possibly a screenshot?

When I replace the image in PictureBox1 with a smaller one via ImageLocation() it simply displays the new smaller image and the previous image completely goes away...
0
 
LVL 9

Author Comment

by:Evan Cutler
ID: 33438271
ok...the problem, I think...
is that the images are not local.  they are remote.

That being said, I think the first thing that comes across is metadata on the image, which changes the size of the Picturebox control, becuase it's still waiting for the new image.
0
 
LVL 2

Accepted Solution

by:
larkvale earned 500 total points
ID: 33449290

try to download the second image in a second hidden picture box then copy the image

PictureBox1.Image = PictireBoxHidden.Image


0
 
LVL 9

Author Closing Comment

by:Evan Cutler
ID: 33608513
This works on my system...hopefully it'll work on the deployment system...thanks.
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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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 …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

18 Experts available now in Live!

Get 1:1 Help Now