Results 1 to 2 of 2

Thread: Splash Screen [Resolved]

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2003
    Posts
    127

    Splash Screen [Resolved]

    I hat to keep harping on this subject, but I am using the code below as the startup.

    Code:
    Module Module1
        Dim frm1 As New Form1()
        Dim frm2 As New Form2()
    
        Public Sub Main()
            frm1.ShowDialog()
            frm2.ShowDialog()
        End Sub
    End Module
    and it works great, what I have been searching for is a means to load the splash (Form1) overtop of the main form (Form2) like Microsoft products do. Both forms at the same time but one in front of the other.

    I tried setting Form1 to TopMost but that doesn't work either. Any thoughts?
    Last edited by teamdad; Jun 26th, 2004 at 12:42 PM.

  2. #2
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi,

    VB Code:
    1. Module Module1
    2.     Dim frm1 As New Form1()
    3.     Dim frm2 As New Form2()
    4.  
    5.     Public Sub Main()
    6.             Application.Run(frm1)
    7.     End Sub
    8. End Module

    In the Load event of Form1 put

    VB Code:
    1. Dim frm2 as New Form2
    2. Me.Show
    3. frm2.ShowDialog


    frm2, being the splash screen, will appear on top of frm1, so you will have to set the Location property of Form2 to get the appearance you require.
    Last edited by taxes; Jun 26th, 2004 at 12:07 PM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

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