Home All Groups Group Topic Archive Search About

how to find out if a form is invoked by splash

Author
19 Oct 2006 6:00 PM
gs
I have an about form I want to use also as splash form.  however when
invoked from the above I want to provide additional info that is not
accessible when being used as splash

is this possible?

Author
19 Oct 2006 9:21 PM
Maligui
Try this method. Don't forget the enum!

Enum SorA
    Splash
    About
End Enum

Public Overloads Function ShowDialog(ByVal owner As
Windows.Forms.IWin32Window, ByVal SplashOrAbout As SorA) As DialogResult

        Me.Owner = owner

        Select Case SplashOrAbout
                Case SorA.Splash
                        'Splash Form
                Case SorA.About
                        'About Form
        End Select
End Function



--
Thiele Enterprises - The Power Is In Your Hands Now!
Show quoteHide quote
"gs" <gs@dontMail.telus> wrote in message
news:ePNHLj68GHA.2288@TK2MSFTNGP05.phx.gbl...
>I have an about form I want to use also as splash form.  however when
>invoked from the above I want to provide additional info that is not
>accessible when being used as splash
>
> is this possible?
>