Home All Groups Group Topic Archive Search About

controlling splash screen form

Author
20 Jul 2006 9:56 AM
steve
Hi All

I want to display a splash screen when my windows application loads, to show
sql server connection progress etc.

First though I want to run some code to check for a valid program licence.
If not found then the program would close

How is the best way to do this

If I set the splash screen in the project properties and run my licence code
in the Application.startup sub the splash screen hogs the screen if any
messageboxes are raised by the licence checking code

How can I control when the splash screen displays, as it would be better if
it didn't display until the licence check was satisfactory


Regards
Steve

Author
20 Jul 2006 10:11 AM
Cor Ligthert [MVP]
steve,

*I* would in your case use two forms, one for my licensing and one for the
splashscreen when loading.

The first will than be openend with a showdialog and the other with a normal
show while that is open as long as a while loop is busy.

There are others who will tell to use threading for that, I would go if that
is needed for optimizing the retrieval of the data.

I hope this gives an idea.

Cor


Show quoteHide quote
"steve" <ga630sf@newsgroups.nospam> schreef in bericht
news:uG1V$K%23qGHA.1552@TK2MSFTNGP02.phx.gbl...
> Hi All
>
> I want to display a splash screen when my windows application loads, to
> show sql server connection progress etc.
>
> First though I want to run some code to check for a valid program licence.
> If not found then the program would close
>
> How is the best way to do this
>
> If I set the splash screen in the project properties and run my licence
> code in the Application.startup sub the splash screen hogs the screen if
> any messageboxes are raised by the licence checking code
>
> How can I control when the splash screen displays, as it would be better
> if it didn't display until the licence check was satisfactory
>
>
> Regards
> Steve
>