Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to show / showdialog form thru a string
Message
 
À
18/07/2004 01:58:05
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00907643
Message ID:
00925539
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform