Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table Driven Menus
Message
From
20/11/2009 21:39:20
 
 
To
20/11/2009 19:11:43
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01435073
Message ID:
01435902
Views:
35
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform