simple image manupulation
Hello.
First, what is the best way to have embedded pictures?
I have 3 pictures.
When I click button1, I need the picture1.gif to appear for 0.5 seconds. After that, i need that one to dissapear and another two to appear.
They can all be at different locations, and use different picture boxes, as long as they are embedded.
No other manipulation is done (such as saving, moving, editing etc).
Re: simple image manupulation
Go to the Resources tab of the project properties and add your Images there. You can then access each via its own property of My.Resources.
Just note that each time you access My.Resources a new Image object is created. As such, if you want to use the image multiple times you should access My.Resources only once and assign the Image object to a variable, then access that multiple times.
Re: simple image manupulation
Ok, I did that but i have ONE problem.
And the problem occurs ONLY with one .gif image.
When I start it, the image appears and animation starts, but this is what happens.
Error Msg:
ExternalException was unhandled
"A generic error occurred in GDI+."
An I really need this file :-(((
anyone?
Re: simple image manupulation
Quote:
Originally Posted by [venom]
Ok, I did that but i have ONE problem.
And the problem occurs ONLY with one .gif image.
When I start it, the image appears and animation starts, but this is what happens.
Error Msg:
ExternalException was unhandled
"A generic error occurred in GDI+."
An I really need this file :-(((
anyone?
sounds like you're have a problem with the code you wrote. Without that, its kinda though to know what is wrong. Its like trying to see with your eyes closed. Can you post code?
Re: simple image manupulation
It even happens when i start to load it in new empty project.
Even the simple way, If i add a picturebox, and import the file it doesn't work that way either.
But picture works fine in windows viewer.
damn!
Re: simple image manupulation
So you're saying that if you use any other image your code works fine but that one causes an exception, correct? I'd try removing it from your resources and re-adding it.