Wierd KeyStroke problem with the WebBrowser control
From: Sachin Sharma (sachinssharma_at_hotmail.com)
Date: 04/22/04
- Next message: saripalli: "Re: Controlling keyboard input to browser control"
- Previous message: Igor Tandetnik: "Re: How to disable the right click menu on a web browser control?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 22 Apr 2004 23:31:59 +0530
Hello,
In my VB app, I have two ATL controls - a control derived from SysListView32
and the other that hosts the WebBrowser (HTMLControl). When an item is
selected in the list view, an event is sent to VB. VB handles this event and
displays data in the WebBrowser control by calling a method. The method
internally calls the write method of IHTMLDocument2.
After the application loads, I use the arrow keys in the list view and
everything works fine. The data gets displayed in the WebBrowser control.
However, when for the first time, I click on the WebBrowser control the
problem starts. The moment I use the arrow keys to go to the next item in
the list view, the WebBrowser automatically grabs the focus. Now, the down
arrow key starts scrolling the WebBrowser contents instead. The contents I
am displaying is simple text. Just name value pairs, no fancy web page
items.
Everything that I found on the web did not help me much. Is there something
more I can try?
Thank you in Advance,
Sachin Sharma
- Next message: saripalli: "Re: Controlling keyboard input to browser control"
- Previous message: Igor Tandetnik: "Re: How to disable the right click menu on a web browser control?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|