Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to show / showdialog form thru a string
Message
 
To
18/07/2004 01:58:05
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00907643
Message ID:
00925539
Views:
16
Hi Bonnie,

Your VB code just needed a little tweaking to get it to work properly. Here's the modified snippet.
Dim DLLName As String = "ClassLibrary1.dll"
Dim ClassName As String = "ClassLibrary1.Form1"
Dim oDLL As System.Reflection.Assembly
Dim oClass As Object
Dim oForm As Form

oDLL = System.Reflection.Assembly.LoadFrom(DLLName)
oClass = oDLL.CreateInstance(ClassName)
oForm = CType(oClass, Form)
oForm.Show()
---
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
http://www.msmvps.com/windsor
http://www.g6consulting.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform