D
Dave Beseke
I have a VB.Net assembly that is used to load another
assembly written in C# via the following code in the 1st
form's load function:
Dim sLocation As String
sLocation= "HTTP://myserver/asm2.dll"
Dim formAsm As [Assembly] = [Assembly].LoadFrom(sLocation)
Dim formtype As Type = formAsm.GetType("asm2.Form1")
Dim FormObj As Object
FormObj = Activator.CreateInstance(formtype)
Dim Form2 As Form = CType(FormObj, Form)
Opacity = 0
Hide()
Form2.Visible = True
Form2.Activate()
I've tried several different way to make the loaded form
the active form, and nothing seems to work. Any ideas?
assembly written in C# via the following code in the 1st
form's load function:
Dim sLocation As String
sLocation= "HTTP://myserver/asm2.dll"
Dim formAsm As [Assembly] = [Assembly].LoadFrom(sLocation)
Dim formtype As Type = formAsm.GetType("asm2.Form1")
Dim FormObj As Object
FormObj = Activator.CreateInstance(formtype)
Dim Form2 As Form = CType(FormObj, Form)
Opacity = 0
Hide()
Form2.Visible = True
Form2.Activate()
I've tried several different way to make the loaded form
the active form, and nothing seems to work. Any ideas?