Hello Peter,
you can sink the OnKeyDown in script code off your web page's body and
forward the key code to your Winforms control. Would that work for your
scenario?
See sample C# and HTML code below.
using System;
using System.Drawing;
using System.Windows.Forms;
namespace WebControl
{
public class MyControl : UserControl
{
Label label;
public MyControl()
{
label = new Label();
label.Parent = this;
}
public void ForwardKeyDown(object o)
{
label.Text = o.ToString();
}
}
}
------
<html>
<HEAD>
<script language="jscript">
function KeyDown()
{
myControl.ForwardKeyDown(event.keyCode);
}
</script>
</HEAD>
<body onkeydown="KeyDown()">
<OBJECT id="myControl" height="80%" width="80%" border="1"
classid="ClassLibrary1.dll#WebControl.MyControl"/>
</body>
</HTML>
Thanks,
Stefan Wick

Signature
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
> I'd like to use the tablet buttons for navigation on a WinForms control
> I'm writing, which will be hosted by IE.
[quoted text clipped - 9 lines]
>
> Thanks
Peter Kron - 27 Sep 2004 02:26 GMT
That's what I eventually figured out. Thanks for the response!
> Hello Peter,
>
[quoted text clipped - 59 lines]
>>
>> Thanks