the webbrowser is a funny beast...

you can hook into the page events on any html element in the current webpage
with some .net code.
There is also a "Navigate" event raised by the MS provided browser control.

i've found this to be a good place for hosting the mshtml control.

www.itwriting.com/htmleditor
the sample provided there shows how to host mshtml without neededing the COM
wrappers and the primary interop assembly.


-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Seref Arikan
Sent: Friday, August 08, 2008 4:00 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Webbrowser control and backspace key problem


Hi,

I am developing a desktop app that'll run on a touch screen device, and it
has to provide access to a series of web pages. the users have to use an
on-screen keyboard to enter data to the web page.

So I have to host webbrowser control, and users will need backspace key to
erase any mistyped data. The trouble is, webbrowser control interprets
backspace key as go back when focus is not in a textbox etc.

I've seen a lot of tips, discussions etc, but none of them seems to cover
this simple scenario. How do I prevent webbrowser control from going back
due to a keypress from backspace key? I do not have control over the
displayed pages, so injecting a piece of javascript is not an option. I'd
really appreciate your comments, for I have lost a ridiciolus amount of time
for such a little annoying problem!

All the best

Seref

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to