How to Access a from inside a dll from zenon editor

How to Access a from inside a dll from zenon editor

Hello every body,
I have developed a dll and embeded it in zenon with ActiveX element.
Now I want to open a form which I placed in dll project dy clicking on the element in zenon editor.
Can I do it by using Reflection? The dll project has been developed with C# in VS 2010.
C# Code:

Object myObject = obElement.AktiveX();
Type myType = myObject.GetType();
MethodInfo Method = myType.GetMethod("ShowOptions");
Method.Invoke(myObject, null);

Actually ShowOptions method is a method that makes an instance of the form and shows the form.
I wrote this code but it doesn't work!
Is there another way to do it?

Regards,
Parisa

This is a migrated post! Originally posted on 16.03.2015 by user parisamoosavi. Please be aware that information can be outdated.