Detecting remote control device events on a browser

Hi, I'm new to dot net, was wondering if anyone here could help...
I got a Windows XP PC with a remote control. (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/remote_control.asp)

I would like to grab the remote control events on a browser.

I got the following C# code for the RMT events grabbing:


using System.Windows.Forms;

class Form1Window : NativeWindow

{

privateconstint WM_KEYDOWN = 0x0100;

privateint iChar;

public Form1 form;
protectedoverridevoid WndProc(ref Message message)

{

// Handle the navigation and numeric buttons.
if (message.Msg == WM_KEYDOWN)

{

iChar = message.WParam.ToInt32();
switch(iChar)

{

case (int)Keys.D0:

// Handle 0 key here.

break;

// Insert more cases here.

} // End switch.

} // End key messages.

base.WndProc(ref message);

} // End WndProc

} // End class.


Where do I go from here? How can I send these events to the browser? What are my options?

I do not need to distribute the application via the Internet, it will run on a single PC which I have full access to.

Thanks in advance,

Kaja.

[2043 byte] By [kajaGugu] at [2007-12-16]
# 1
If you are using your own browser control....

WebBrowser1.Document.Write("Hello")

DMan1 at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
Thanks DMan,

Can I also use this to activate JS functions?

kajaGugu at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...