Wierd KeyStroke problem with the WebBrowser control

From: Sachin Sharma (sachinssharma_at_hotmail.com)
Date: 04/22/04


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



Relevant Pages

  • RE: Printing HTML from Window Forms
    ... private static extern IntPtr SendMessageTimeout(IntPtr hWnd, uint Msg, ... control) is not up to the task of printing reliably from a Windows Forms. ... Maybe you could suggest to the team in charge of WebBrowser that they should ... add a bit more functionality to the managed control so that you can specify a ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Context Menu for Embedded WebBRowser
    ... I don't remember how the WebBrowser control works. ... > Hi Paul ... > click on the context menu. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Multiple copies of webbrowser control and site logins
    ... > I have several processes accessing a website, each through a webbrowser ... I do not need to login to the site to access any information. ... > one webbrowser control are all the other instances automatically logged ... > semaphore to make sure I limit concurrent requests to a minimum. ...
    (microsoft.public.vc.mfc)
  • Re: WebBrowser Control - File Feld
    ... > Ich habe im Internet nur Infos gefunden dass es wegen der Sicherheit ... ich kenne aber eine Software die nutzt den ... du hast eine VB Software in der du das WebBrowser Control ...
    (microsoft.public.de.vb)
  • Re: Multiple copies of webbrowser control and site logins
    ... > I have several processes accessing a website, each through a webbrowser ... I do not need to login to the site to access any information. ... > one webbrowser control are all the other instances automatically logged ... > semaphore to make sure I limit concurrent requests to a minimum. ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)