Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to show / showdialog form thru a string
Message
From
18/07/2004 09:51:23
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00907643
Message ID:
00925566
Views:
22
You're right, Rob, of course. I guess I should have mentioned that the DLL and class names should be fully qualified. Thanks for pointing it out.

~~Bonnie



>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()
>
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform