Load image into a variable and this set it = to picturebox image.

  • Thread starter Thread starter Peter
  • Start date Start date
P

Peter

If I have the image 'Myimage.gif' in my application directory,
how do I load this image into a variable,
and then... set this = to a picturebox image property.

I do not want to directly assign the image.
 
* (e-mail address removed) (Peter) scripsit:
If I have the image 'Myimage.gif' in my application directory,
how do I load this image into a variable,
and then... set this = to a picturebox image property.

\\\
Me.PicturBox1.Image = Image.FromFile("C:\foobar.gif")
///
 
Herfried,

What was it with you yesterday, mix up seconds with minutes.
And here mix up controls with variables.
?
:-)

Cor
 
* "Cor Ligthert said:
What was it with you yesterday, mix up seconds with minutes.
And here mix up controls with variables.
?
:-)

Well, I did some optimization and got rid of the variable... ;-).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top