473,387 Members | 3,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

.NET C#: How to use ctrl+F as shortcut to a button?

Hi,

I have a "Find..." button in a windows form that opens a find dialog that lets the user search for a string when the button is clicked. How can I do to make ctrl + F open the same dialog, only in the relevant context?

For menuItem objects there is a ShortcutKeys property that kan be set. Is there any similar property for buttons?

Thanks
Sep 3 '07 #1
1 3085
dip_developer
648 Expert 512MB
Hi,

I have a "Find..." button in a windows form that opens a find dialog that lets the user search for a string when the button is clicked. How can I do to make ctrl + F open the same dialog, only in the relevant context?

For menuItem objects there is a ShortcutKeys property that kan be set. Is there any similar property for buttons?

Thanks
see this..if it helps u..........

http://www.developerfusion.co.uk/show/271/

http://www.codeproject.com/vb/net/mclhotkeynet.asp
Sep 3 '07 #2

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

Similar topics

3
by: cyshao | last post by:
How to add a shortcut Ctrl+S ? I want to add a new function for user to provide Ctrl+S to save things. How can I do that? Thanks Charles Shao^_^
4
by: brenny | last post by:
I want to realize that pressing CTRL+C keys without keyboard by using code in the button event. How can I do? Thanks
2
by: Jim S | last post by:
I am having a problem finding information regarding vb.net allowing you to create shortcut keys for buttons using the CTRL key + function buttons such as F1, F2 etc.. (Ex: Press CTRL+F1 to activate...
8
by: Christian Blackburn | last post by:
Hi Gang, In most programs Ctrl+A is Select All. I'm inclined to use the most common keyboard shortcuts, whenever possible. What are the names of some programs that have a key assigned for...
21
by: Zytan | last post by:
Instead of Ctrl+Y redoing what's stored in 'future history', it REPLACES that information (which will then be forever lost) with a new command: delete current line. This shortcut is so ridiculous...
1
by: d0ndela | last post by:
As the title says, all of a sudden as I was coding VB.NET in Visual Studio 2005 my Ctrl button (on the keyboard) wouldnt work with any shortcut, I cant say what triggered it, as I discovered it when...
3
by: armknp | last post by:
I am working on webpage. I want to make it launch other program shortcut which is Ctrl+Alt+something. Is it possible to write javascript to press the shortcut? So the user won't have to press many...
0
by: thirunavukarasukm | last post by:
Hai... How to Usercontrols with Shortcut Keys... I am creating one windows apllication.. the apllication contain many form.. in one form i am used one usercontrol(parent control)..
0
by: Yusuf Incekara | last post by:
I 've assigned a shortcut key for CTRL+SHIFT+1 key in my application. I can handle these keys in Form's keydown event. private void Form1_Load(object sender, EventArgs e) { this.KeyPreview =...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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
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
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...

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.