Free for PREMIUM members
Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium
Dim FormName As String = "My Form"
Dim newform As Form = New Form
newform.Name = FormName
Open in new window
Private Function GetFormByName(ByVal formName As String) As Object
Dim myasm As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
Return myasm.CreateInstance(myasm.GetName.Name.Replace(" ", "_") & "." & formName)
Catch ex As Exception
Dim FormName As String = "Form2"
Dim newform As Form = CType(Reflection.[Assembly].GetEntryAssembly.CreateInstance( _
My.Application.Info.AssemblyName & "." & FormName), Form)
Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.
One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.