I creaded some derived class DocumentClientInfo inherited from DocumentPane.
Into DocumentClientInfo class i put webBrowser control (MS) as folow:
On raising click event I get following message:
Thanks.
Into DocumentClientInfo class i put webBrowser control (MS) as folow:
[PermissionSet(SecurityAction.Demand, Name = "FullTrust")] |
[System.Runtime.InteropServices.ComVisibleAttribute(true)] |
public partial class DocumentClientInfo : DocumentPane |
{ |
public DocumentClientInfo() |
: base() |
{ |
InitializeComponent(); |
webBrowser1.ObjectForScripting = this; |
webBrowser1.DocumentText = "<html><body><input id=\"chk1\" type=\"checkbox\" onclick=\"window.external.Test();\" /></body></html>"; |
} |
public void Test() |
{ |
MessageBox.Show("Ok"); |
} |
} |
On raising click event I get following message:
A QueryInterface call was made requesting the class interface of COMHaw can resolve this?
visible managed class 'DocumentClientInfo'. However since this class derives from
non COM visible class 'Telerik.WinControls.Docking.DocumentPane', the QueryInterface call will fail. This
is done to prevent the non COM visible base class from being
constrained by the COM versioning rules.
Thanks.