Click to See Complete Forum and Search --> : Splash Screens


C. Hunter
10-23-2003, 03:57 PM
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...

Phil Weber
10-23-2003, 03:57 PM
> 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/magazine/columns/qa/
--
Phil Weber

C. Hunter
10-23-2003, 03:57 PM
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/magazine/columns/qa/
>--
>Phil Weber
>

Phil Weber
10-23-2003, 03:57 PM
> 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/aldotnet/examples/translate.aspx
--
Phil Weber

Bruce
10-23-2003, 03:57 PM
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...