Re: Using a web browser control to display somewhat dynamic content to sighted users, but without it taking control of KeyDown event handler for windows form

  • From: "Jacob Kruger" <jacobk@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Tue, 8 Jun 2010 12:42:46 +0200

Could do, but the user could still tab over to the web browser control in the windows form, since it doesn't seem to have an onFocus event attached to it, and so far the closest I found was one for KeyDownPreview, which might enable me to still catch keystrokes, but wouldn't want them to then still be passed to this control.


Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

----- Original Message ----- From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Tuesday, June 08, 2010 11:23 AM
Subject: Re: Using a web browser control to display somewhat dynamic content to sighted users, but without it taking control of KeyDown event handler for windows form


After writing the updated content to the web browser control, could you add a line to force the form back into focus?

 Martin


----- Original Message ----- From: "Jacob Kruger" <jacobk@xxxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Tuesday, June 08, 2010 9:42 AM
Subject: Using a web browser control to display somewhat dynamic content to sighted users, but without it taking control of KeyDown event handler for windows form


Like subject line says, am busy with something where it will be easiest for me to make use of a WebBrowser control to display dynamically changing content to sighted users, while using SayTools to render content changes to VI users, but I am making use of the forms KeyDown event handler to capture keystrokes, so it doesn't really help too much if the focus switches over to the WebBrowser control, so just wondering off hand if anyone can think of an easy way to stop it from taking focus?

FWIW, this application is a version of talking scrabble, and currently busy with a form of artificial intelligence development to allow computer 'player' to choose which words to make use of on board, but anyway, and busy with all of this in C#, using VS.Net 2008.

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'


__________ Information from ESET NOD32 Antivirus, version of virus signature database 5180 (20100607) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind


__________ Information from ESET NOD32 Antivirus, version of virus signature database 5181 (20100608) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5181 (20100608) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: