Results 1 to 7 of 7

Thread: Timed Splashscreen

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2005
    Location
    Norway
    Posts
    71

    Timed Splashscreen

    For my program, if I would want to display a form, picture or something before the main app loaded how would I do that? Im pretty sure it has something to do with the timer icon but I'm not sure how to use that, hope anyone can help a newb

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Timed Splashscreen

    Quote Originally Posted by UrlGuy
    For my program, if I would want to display a form, picture or something before the main app loaded how would I do that? Im pretty sure it has something to do with the timer icon but I'm not sure how to use that, hope anyone can help a newb

    Heres the idea:

    Create a form (Say for an example frmSplash).

    Add whatever you like to that and add a Timer to that with an interval of 10000 (10 Seconds).

    In the Timer1_Timer Event put something like this:

    VB Code:
    1. Private Sub Timer1_Timer()
    2.     ' Show the next form...
    3.     frmFormNameHere.Show (vbNormal)
    4.     ' Unload this form...
    5.     Unload Me
    6. End Sub

    Or, something like that

    Cheers,

    Ryanj
    My Blog.

    Ryan Jones.

  3. #3
    Junior Member Jethro Tull's Avatar
    Join Date
    May 2005
    Location
    Buenos Aires - Argentina
    Posts
    31

    Re: Timed Splashscreen

    I suggest you to start the project in the splash form (in Project--->(project) properties).

    As sciguyryan said, put a timer in the form and set the timer at your pleasure (I suggest no more than 10 secs, it is Interval <= 10000) and
    VB Code:
    1. Private Sub Timer1_Timer()
    2.     Unload Me
    3. End Sub
    AMD Athlon 2.4 GHz - 512 Mb RAM - Win XP Pro SP2

  4. #4
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Timed Splashscreen

    Quote Originally Posted by Jethro Tull
    I suggest you to start the project in the splash form (in Project--->(project) properties).

    As sciguyryan said, put a timer in the form and set the timer at your pleasure (I suggest no more than 10 secs, it is Interval <= 10000) and
    VB Code:
    1. Private Sub Timer1_Timer()
    2.     Unload Me
    3. End Sub

    Just don't forget to show the next form or you'll end up showing nothing at all

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  5. #5
    Junior Member Jethro Tull's Avatar
    Join Date
    May 2005
    Location
    Buenos Aires - Argentina
    Posts
    31

    Re: Timed Splashscreen

    AMD Athlon 2.4 GHz - 512 Mb RAM - Win XP Pro SP2

  6. #6
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: Timed Splashscreen

    Quote Originally Posted by Jethro Tull

    Easy mistake to make, I made that one once and was getting annoyed because I could not find my application.... I spent hours working through the code and it all ended up with one line of code...

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  7. #7
    Junior Member Jethro Tull's Avatar
    Join Date
    May 2005
    Location
    Buenos Aires - Argentina
    Posts
    31

    Re: Timed Splashscreen

    Normally I start my apps in a splash form, and here I make the initializations, and then load the MDI form.
    AMD Athlon 2.4 GHz - 512 Mb RAM - Win XP Pro SP2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width