473,503 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

accellerator keys in c# - using ampersand for shortcut

I have an issue with a multi-form app - not MDI. My issue
is that I need to create shortcut keystrokes for all of
the buttons on each form. I would love to use the typical
method of adding an ampersand(&) before the hotkey
character and have .net do the magic for me. What I am
finding is that it works great on the main form, but on
any child forms i show (using ShowDialog() ) it seems
that the keystroke is getting processed by the main
(parent) form and I get an error if the main form doesn't
handle it.

Can anyone let me know how I might use this extremely
convenient functionality on these child dialogs without
writing my own keypress event handlers for each form?

Thanks!
jiminy
Nov 15 '05 #1
0 1376

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3319
by: Maurice Mertens | last post by:
Hi, I'm trying to set shortcut keys for textboxes. But what is the best way to do this in VB.NET. In Access it was very simple, just put an "&" sign in the label that belongs to the textbox. But...
2
2134
by: Nick | last post by:
In VS 2003 and VS 2005 beta 2 I am trying to write a simple program. It has a datagrid and a textbox along with a menubar. There is a command in the menu bar which is "Run Query" and has the...
3
7385
by: BruceR | last post by:
I have posted a similar message and am reposting due to no response. Basically, I need to know why using the ampersand to indicate an access key for a button makes it so that simply entering the...
2
29095
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...
7
4144
by: Ronald S. Cook | last post by:
I'm writing a Windows app and want to associate function keys with some of my menu items (e.g. Help (F1)) and buttons. How can I do this, please? Thanks.
2
11691
by: philelpko | last post by:
Morning all, My database is now secure and hosted on the network and appears to be happily running thanks to several (hundred) posts on this site so thanks to everyone for the help. One person...
1
2890
by: Emma Middlebrook | last post by:
Hi there, I'm trying to handle some shortcut keys within my application and I can't seem to get the code to work when you are trying to action against a ctrl + other character. I found a post...
1
1788
by: =?Utf-8?B?Um9iIE11dGNoZWs=?= | last post by:
I have reinstalled Visual Studio 6.0 and service packs and am programming in VB 6.0 on XP machine. Since re-install of Visual Studio any shortcut keys created on menus using the & character fail to...
0
2624
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
7083
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
7278
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
7328
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
6988
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
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
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
4672
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
1510
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
379
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.