Solved

picturebox problem

Posted on 2010-08-14
4
604 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HTTPS jquery doesn't work 9 61
VS.net 2010 11 35
VB net, code to modify xlsx file, and errors when it is ran on NON-developer PC... 2 24
SQL Help 27 45
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
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 Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

773 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