Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Imports System.Reflection
Imports System.windows.forms
'Creates form from form name - CASE SENSITIVE
Public Shared Function GetFormByName( _
ByVal formName As String) As Form
Dim assemblyName As String = _
[Assembly].GetEntryAssembly().GetName.Name.Replace(" ", "_")
Dim myType As Type = _
Type.GetType(assemblyName & "." & formName)
Return CType(Activator.CreateInstance(myType), Form)
End Function
Private Function GetFormByName(ByVal formName As String) As Object
Dim myasm As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
Try
Return myasm.CreateInstance(myasm.GetName.Name.Replace(" ", "_") & "." & formName)
Catch ex As Exception
Return Nothing
End Try
End Function