Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table Driven Menus
Message
From
20/11/2009 19:11:43
 
 
To
20/11/2009 18:21:34
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01435073
Message ID:
01435889
Views:
43
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
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform