Solved

picturebox problem

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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

746 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

13 Experts available now in Live!

Get 1:1 Help Now