Hello,
In my application, I've to cast DocumentDesigner class to my own derived
class,MyDocumentDesigner, in order to reach the protected properties in
DocumentDesigner class. But everytime I get a "Specified cast not valid!"
error...
MyDocumentDesigner FDDesigner =
((MyDocumentDesigner)DHost.GetDesigner((IComponent )CForm));
This works if I specify FDDesigner (But as I can't reach to the protected
properties, doesn't work for me) as DocumentDesigner and MyDocumentDesigner
doesn't include any extra property, event, etc... itself, just an empty
derived class from DocumentDesigner...
MyDocumentDesigner FDDesigner =
((DocumentDesigner)DHost.GetDesigner((IComponent)C Form));
The above code doesn't work neither...
Can anyone help me?
My purpose is to reach to protected properties inside DocumentDesigner class
so I'm open to any kind of other suggestions?
Thanks in advance...
Özden