alanchinese
Regular
- Joined
- Jan 12, 2005
- Messages
- 62
i want to see if there is a way to show a form from another project according the dll name string passed by the users.
Public Sub ShowOneForm(ByVal dllName as String)
Dim oneForm
Select Case (dllName)
Case "FormA":
oneForm = new CustomFormA()
Case "FormB":
oneForm = new CustomFormB()
Case "FormC":
oneForm = new CustomFormC()
End Select
oneForm.Show()
End Sub
anyway to remove the select case block and achieve everything with one simple statement?
Public Sub ShowOneForm(ByVal dllName as String)
Dim oneForm
Select Case (dllName)
Case "FormA":
oneForm = new CustomFormA()
Case "FormB":
oneForm = new CustomFormB()
Case "FormC":
oneForm = new CustomFormC()
End Select
oneForm.Show()
End Sub
anyway to remove the select case block and achieve everything with one simple statement?