Link to home
Start Free TrialLog in
Avatar of Evan Cutler
Evan CutlerFlag for United States of America

asked on

picturebox problem

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.
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

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...
Avatar of Evan Cutler

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of larkvale
larkvale
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This works on my system...hopefully it'll work on the deployment system...thanks.