controlling splash screen form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • steve

    #1

    controlling splash screen form

    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.sta rtup 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


  • Cor Ligthert [MVP]

    #2
    Re: controlling splash screen form

    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


    "steve" <ga630sf@newsgr oups.nospamschr eef in bericht
    news:uG1V$K%23q GHA.1552@TK2MSF TNGP02.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.sta rtup 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
    >

    Comment

    Working...