Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table Driven Menus
Message
De
20/11/2009 21:39:20
 
 
À
20/11/2009 19:11:43
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01435073
Message ID:
01435902
Vues:
34
>OK, found it. You need to use the following code:
>
>
>bbReflection oReflect = new bbReflection(assemblyname, classname);
>string message = "";
>object oMy = oReflect.InstantiateClass(ref message);
>if (oMy != null)
>{
>        // you might want to incorporate a RunMethod method in your bbReflection class
>        // and the following will show you what you need in that method
>	System.Reflection.MethodInfo mi = oForm.GetType().GetMethod(methodname);
>	if (mi != null)
>	{
>		object[] parms = new object[1];
>		parms[0] = "Hello World";
>		mi.Invoke(oMy, parms);
>	}
>}
>
>
>Hope that makes it a bit clearer.
>
>~~Bonnie

Hi Bonnie

That was quick.Thanks for the above sample. I will try out the code you posted here and get back to you.
Yes I would need that Invoke code as well.

Bernard
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform