VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



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

by Vlad Vissoultchev (13 Submissions)
Category: OLE/COM/DCOM/Active-X
Compatability: Visual Basic 5.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (14 Votes)

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

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

Download How to capture Tab/Enter/Esc on your custom UserControl (10 KB)

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

No comments have been posted about How to capture Tab/Enter/Esc on your custom UserControl. Why not be the first to post a comment about How to capture Tab/Enter/Esc on your custom UserControl.

Post your comment

Subject:
Message:
0/1000 characters