Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Winform Control as ActiveX

Winform Control as ActiveX

Scheduled Pinned Locked Moved C#
csharphelpquestionhtmlasp-net
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    adityap
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups