Visual Basic Development Bookmark and Share   
 Home > Visual Basic Language > Gif file not visible at runtime in vb.net 2005
 

Gif file not visible at runtime in vb.net 2005

hi all

I am trying to create an windows application where i hav called an gif file to show the status of the application (instead of progress bar). i tried to display this in a picture box (also tried with webbrowser control). but wat happens is that this gif file is not visible at run time (ie while some process takes place) but visible when the process gets complete.. Can some1 help me in this case.

Thanks in advance.


Ammaippan  Thursday, July 31, 2008 6:51 AM

I get the impression that you have replaced the progress bar with an animated GIF?

Assuming I'm way off base there a sec, load the GIF before doing any other process.

Then if it is an animated GIF (the following is still a good idea - even if the GIF isn't an animated one), remember to put a statement such as:

application.doevents()

in loops and other time intensive processes so that Windows get a chance to respond to events and update things etc. You might even find that your GIF gets loaded and displayed then before the other processes have to finish.

Allan

bigamee  Thursday, July 31, 2008 7:37 AM
You probably need to put your process in a thread, or BackgroundWorker component which encapsulates a lot of the threading aspects.



Stephen J Whiteley
SJWhiteley  Thursday, July 31, 2008 3:45 PM

You can use google to search for other answers

Custom Search

More Threads

• Why doesn't a System.Windows.Forms.BindingSource retrieve data when it is inside a user control?
• Resource Files - Solved.
• How to display a moving line in VB.net
• Update Text file
• Loop Question
• button click
• How to replace the text that is between "*" and "*"?
• Saving a temporary file (obviously no dialog use)
• Alphabetical Ordering of Email Data
• Delete() function not responding properly !!!