Groups | Blog | Home
all groups > dotnet general > november 2004 >

dotnet general : Internet Explorer Band Objects


Craig
11/11/2004 6:17:52 PM
Has anyone done any development with Internet Explorer band objects in
VB.NET?

If so, how did you resolve the issue surrounding IEs failure to process the
backspace keydown event for edit controls hosted within band objects?

I've found several C++ examples addressing this problem, and they do so by
implementing the TranslateAcceleratorIO method. However, even though I have
this method implemented in my bandobject class, IE never calls it.

I found online a C# project that implements this routine, but IE functions
the same with this version as well - it never calls the routine.

How do I get my bandobject library to raise the keydown event for the
backspace key if IE won't call the routine required to raise the event?

I would appreciate any direction anyone could offer.

Craig

Craig
11/12/2004 5:14:59 PM
In case anyone has an interest, after some digging, googling, trial, and
much error, I've learned that in order for TranslateAcceleratorIO to fire,
IE must know that the control for which it should fire has focus. So, to
solve the problem, just use the OnFocusChangeIS method within the control's
GotFocus method, et voila ... TranslateAcceleratorIO fires.

Cheers,
Craig

[quoted text, click to view]

AddThis Social Bookmark Button