|
#1
|
|||
|
|||
|
Splash Screens
Hello fellow developers I have a program that I have just finished using vb.NET, now I would like to create a splash screen. How would I do get the splash screen to be displayed for about 5 seconds and then my main form loads? someone please help... |
|
#2
|
|||
|
|||
|
Re: Splash Screens
> How would I do get the splash screen to be displayed
> for about 5 seconds and then my main form loads? C: http://www.ftponline.com/vsm/2003_04...ne/columns/qa/ -- Phil Weber |
|
#3
|
|||
|
|||
|
Re: Splash Screens
Hey Phil I haven't learned C# yet, are there any examples in VB.NET? "Phil Weber" <philweber@hotmail.com> wrote: > > How would I do get the splash screen to be displayed > > for about 5 seconds and then my main form loads? > >C: http://www.ftponline.com/vsm/2003_04...ne/columns/qa/ >-- >Phil Weber > |
|
#4
|
|||
|
|||
|
Re: Splash Screens
> I haven't learned C# yet, are there any examples
> in VB.NET? C: You may be able to find one by searching the Web. If not, try this: http://authors.aspalliance.com/aldot...translate.aspx -- Phil Weber |
|
#5
|
|||
|
|||
|
Re: Splash Screens
You can try something like this, starting from a module: Sub Main() Dim oFrmStartup As New frmStartup 'Create thread to show splash screen Dim thr As New Threading.Thread(AddressOf ShowSplash) '---Start the thread thr.Start() '---Run the main application Application.Run(oFrmStartup) End Sub Sub ShowSplash() Dim oFrmSplash As New frmSplash 'Show the splash screen oFrmSplash.Show() 'Place window on top oFrmSplash.TopMost = True 'Pause for 3 seconds Threading.Thread.CurrentThread.Sleep(3000) '---All done oFrmSplash.Dispose() End Sub Bruce "C. Hunter" <cchyter@yahoo.com> wrote: > >Hello fellow developers > >I have a program that I have just finished using vb.NET, now I would like >to create a splash screen. How would I do get the splash screen to be displayed >for about 5 seconds and then my main form loads? > >someone please help... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|