473,503 Members | 11,435 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to fire an event after results from short cut key

489 Contributor
I have a user that uses the ctrl F short cut, he places the cursor on a field then pressing the ctrl F and types in the information he is searching for. My question is after the information from the search is on the screen is there a way to fire off a event?
Oct 23 '10 #1
3 1750
ADezii
8,834 Recognized Expert Expert
I imagine that you would have to capture the CTL+F Key sequence, then replace the Standard Find Dialog with your own via a Custom Form. From this point, you would have much greater flexibility.
Oct 23 '10 #2
CD Tom
489 Contributor
I'm not sure just how to capture the key sequence.
Oct 24 '10 #3
ADezii
8,834 Recognized Expert Expert
  1. Set the Form's KeyPreview Property to Yes (Critical).
  2. Place the following Code in the KeyDown() Event of your Form.
  3. Now, when CTRL+F is pressed, the Standard Find Dialog will not appear, the code in the KeyDown() Event of the Form will be processed instead. This is where you will Open your Custom Find Form.
    Expand|Select|Wrap|Line Numbers
    1. Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    2.   If KeyCode = vbKeyF And Shift = acCtrlMask Then
    3.     'CTRL+F was pressed and captured, open Custom Find Form
    4.   End If
    5. End Sub
Oct 25 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

5
18192
by: skipc | last post by:
Hi, I am stuck... I've got a popup window that displays a list in table format with links on the bottom to navigate the list <prev> 1 2 3 ... <next> When I demo'd to the users... they...
0
1884
by: Rob R. Ainscough | last post by:
Has anyone else had this problem? I'm in GridLayout, if I add a new Label control and try to move/position it to the bottom page using the arrow keys it just stops at the bottom and doesn't let...
2
8761
by: Newbie | last post by:
Could someone help: I have been searching the web trying to figure out a way to use function key's in my vb.net 2003 program (No luck!). What I would like to do is enable the user to press (for...
1
1819
by: lipsa | last post by:
hi, I Hv a label and a corresponding hyperlink.i want 2 access the hyperlink using hot keys(alt+key)specified in the label....is it posible? label---firstlink hyperlink="http:/..." i want 2...
7
7604
by: vitaminB18 | last post by:
What are the example codes for the forms instead of using a command buttons.?
1
1662
by: luqman | last post by:
How can I use the short cut keys like F2, F3 on web form, so do some process. For example: Pressing F2 should save the Document, pressing F3 should click the Button etc. I am using VS 2005. ...
1
2040
by: Sam Samson | last post by:
Greeetings All .. For my users convenience I have mapped function keys F2 .. F12 to change the tabs on the Tabcontrol. Works like a charm <ominous musicuntil one hits F8</ominous music> ...
4
1635
by: Mecena | last post by:
Hi! I'm using arrow keys to navigate thru controls and I want my tab control to implement that feature too, so when tabpage gets entered (focus is on the header) DOWN key should focus on first...
0
767
by: jayanthnadig | last post by:
Hi All, in our .Net(C#) windows application a modaless window will open with a textbox in focus. we have to enter the value in textbox programatically and close that window. is that possible using...
3
2581
by: Harlan Messinger | last post by:
Jukka K. Korpela wrote: For heaven's sake, give it a rest. It's an *exercise*. I'm sure when you were learning all this, you went directly from zero to major world-shaking innovations, but most...
0
7067
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4992
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.