I've got an application at the moment that has to process a fairly meaty job. Instead of making the user sit looking at a dead form, I figured it'd be nice to show a "Program is working" message to them... And to make it pretty, slapped an ani' gif on there for good measure.
The result was not good. The form loads, but only just. The labels with the brief message and the gif do not show and parts of the form background are transparent where they havn't loaded properly.
I've tried several way around this:-
1) Opening the form but make it invisible, only making it 'visible = true' when I need it. I had hoped that since the form was already loaded it would display. It didn't.
2) keeping the form opena nd visible but moving outside the bounds of the display. Move it to centre screen when I want to see it. No change in behaviour, still doesn't load properly.
3) Opening the seperate form and then on that form load, call the big sub from the main form. This one just completely refused to show even the outline of the new form and then tried to close it before it had even opened it.
I've done some research on the internet. All the examples I can find are either poorly explained (for my level) or are just so unfathomably complicated that it makes me want to uninstall VB.Net in a fit of rage.
So, to summarise: Form1 has a big job to do. Form5 is a small wait message with an ani' gif. While Form1 is working its mojo, Form5 needs to show in its entirety with the gif spinning around in circles.
I think this might be something to do with the DoEvents thing, but I have no knowledge of these functions and am struggling to understand where it is meant to go.
If you can help, I would be enormously grateful. And if I can make sense of the solution you offer, I may have to propose marriage. but we'll cross that bridge when we come to it.
Many thanks in advance,