how to find out if a form is invoked by splash

  • Thread starter Thread starter gs
  • Start date Start date
G

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?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top