Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

onkeypress event

0 views
Skip to first unread message

Adam Barker

unread,
Jul 28, 2000, 3:00:00 AM7/28/00
to

Hi,

I am using the WebBrowser control within Visual Basic as a UI for a part of
an application. I want to trap changes in a <TEXTAREA> element, and retrieve
the latest value, but when 'onkeypress' or 'onkeydown' triggers, I get the
value *before* the key was pressed, in other words, one character short of
what I need!

Any help appreciated

Adam Barker

Warren R. Greer

unread,
Jul 31, 2000, 3:00:00 AM7/31/00
to

Hi Adam,
You might try the 'onkeyup' event.

"Adam Barker" <ad...@q-state.com> wrote in message
news:OWqk1BJ#$GA.290@cppssbbsa04...

Geir André Rasmussen

unread,
Nov 28, 2000, 3:00:00 AM11/28/00
to
Isn't there a onKeyUp?

SteveP

unread,
Dec 13, 2000, 11:43:56 AM12/13/00
to

If you need to use onkeydown or onkeypress - just capture the event.keyCode
and convert it to a character and add it onto the end of what you are
getting. This is the character that you are missing. You can use the
String object method to do the convetion i forget what its called, but its
documented. I thin it might be string.keytochar or something like that.

Steve P


"Geir André Rasmussen" <geir.ra...@christianianett.no> wrote in message
news:OZjZgVSWAHA.242@cppssbbsa03...

0 new messages