>thanks for that Michael.
>one more quick question ,my class in .net is a "static" class ,can we use static classess with this approach ?
>bcoz following line throws an error
>
>object obj = Activator.CreateInstance(type, param1);
>
>error is "Constructor on type Robot.myclass' not found."
You need to adjust for your own needs. You might have to change a few lines here and there. That includes the one with that reference. You need to adjust accordingly.