I have an animated GIF that I would like to use in my VB .NET application when a process is running. It works fine with asynchronous tasks but the problem I have is with processor intensive tasks, the animation stops until the line of code has been executed.
I have a third party control on one of my forms and it takes two or three seconds to initialise, because I dont have access to the inner workings of the control I cannot use Application.DoEvents.
I have tried putting my GIF on a different form and loading it before the code line runs thinking that it may be on a different thread but it does the same thing.
I dont necessarily think this is a problem with the GIF as I have tried a progress bar in marquee mode, it too stops when it reaches the line of code.
Does anybody know how I can get around this?