Winform Control as ActiveX
-
Hi, I have created a simple WinForm control (as a replacement of activex) in c#.net . I embedded it in my html page, it works fine. Now i have created a delegate to handle a event "xyz". Now this "xyz" event is called on the "mouseclick" event of my control (actually its one of the compenent i.e. textbox).
In the class declaration..
public delegate void RecogniseCommandDelegate(); public event RecogniseCommandDelegate VoiceCommand; //refered to as "xyz" .... ..... private void txtUserText_MouseClick(object sender, MouseEventArgs e) { VoiceCommand(); //"xyz" raised }
The problem now arises is how do i register this event handling in my html page, so that when "xyz" event is raised i perform some action on the web page????????? It could be using JScript or VBScript or ASP.NET or any thing, what i need is a working example of such senario.. If any body could help on this, i would really be greatfull. Thanks in anticipation. P.S. I used delegate because i couldnt figure out a way to diretly handle the mouseclick( or any other event for that matter) event. If any body can do it without delegate, that would be great too.