VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

How to capture Tab/Enter/Esc on your custom UserControl

Vlad Vissoultchev  (13 Submissions)   OLE/COM/DCOM/Active-X   Visual Basic 5.0   Advanced   Wed 3rd February 2021

Before starting the project register the oleguids3.tlb from the zip.
______________________________________________________
This is an example of a usercontrol that intercepts vbKeyTab, vbKeyEnter and vbKeyEsc keys WITHOUT using windows hooks. The idea is to place a custom implementation on the IOleInPlaceActiveObject interface of the usercontrol and to implement custom handling in TranslateAccelerator method. The idea is by Mike Gainer, Matt Curland and Bill Storage and the implementation can be found on vbAccelerator.com. Another interesting idea shown is how to "simulate" pressing tab key on the form as to be able to tab out of the control with ctrl+tab for instance. Greetings go to ORSHEE (for his grid control) and to José Pablo Ramírez Vargas (for not believing this is possible)! Enjoy, and check out my other controls submissions!

Rate How to capture Tab/Enter/Esc on your custom UserControl (15(15 Vote))

Download How to capture Tab/Enter/Esc on your custom UserControl

How to capture Tab/Enter/Esc on your custom UserControl Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters