473,405 Members | 2,171 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,405 software developers and data experts.

how to set AltN in shortcut?

Hi,

is there anyway to set AltN in shortcut property?

thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
2 1694
Hi,

You don't need to specially set a shortcut for Alt+(character) combinations
like Alt+x. This funtionality is automatically provided by just adding a '&'
before the character you want the shortcut to be in the Menu name.

Because of this, no Alt+character combinations are available in the shortcut
property.

For example, if the menu name is File and you want the shortcut as Alt+F,
then you would the Text property as '&File'.

HTH,
Rakesh Rajan

"newbie_csharp" wrote:
Hi,

is there anyway to set AltN in shortcut property?

thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #2
Well that is not exactly true. Hotkeys doesn't work the same way shortcuts
do.

To answer to the question... No, you can not. If you want to attach a
shortcut to a menu item you can use only ones in the Shortcut enumeration.
That property checks the value whether is among Shortcut enum's values and
if it is not it throws an exception.

Setting different value can be done easely, with the current version of
..NET, by setting one private field using reflection, but that kind of hacks
I wouldn't recommend to anyone.

--
HTH
Stoitcho Goutsev (100) [C# MVP]
"Rakesh Rajan" <Ra*********@discussions.microsoft.com> wrote in message
news:59**********************************@microsof t.com...
Hi,

You don't need to specially set a shortcut for Alt+(character)
combinations
like Alt+x. This funtionality is automatically provided by just adding a
'&'
before the character you want the shortcut to be in the Menu name.

Because of this, no Alt+character combinations are available in the
shortcut
property.

For example, if the menu name is File and you want the shortcut as Alt+F,
then you would the Text property as '&File'.

HTH,
Rakesh Rajan

"newbie_csharp" wrote:
Hi,

is there anyway to set AltN in shortcut property?

thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #3

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

Similar topics

27
by: aa | last post by:
Thought this question might be out of this NG's scope, there are always knowledgable people who might hava an answer. A hyperlink to a shortcut to a file returnes an empty screen, and the source...
4
by: Salad | last post by:
A97. If you set a forms properties to ShortcutMenu = No, the entire form is disabled from displaying a shortcut menu. If you set the property to Yes, all controls have a shortcut menu. I have...
0
by: cefrancke | last post by:
I recently discovered, that if you set the startup options for "security", you will have alot of work do to get Access back to "normal". If you disable the built-in menus/toolbars you'll have to...
0
by: Marcel | last post by:
Hi, the application I am writing has a MainMenu and a DataGrid (UltraGrid). Now I have to edit the text of each cell in this grid. So far so good. All works fine in editmode but if I press a...
0
by: newbie_csharp | last post by:
Hi, thanks for your replies to my previous question :) my other problem: I cannot set "AltN" as shortcut in a MenuItem. on the dropdown list, there is no "AltN". when I set "text" to "&New",...
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
3
by: TC | last post by:
I've written an application using VB.NET 2003 and packaged it with a deployment project. When I use the setup program to install the application, however, it doesn't work. More specifically, the...
7
by: GrandpaB | last post by:
I would appreciate assistance learning how to create a Desktop shortcut in my setup project. In the left pane of the Setup/File System window I right-clicked User's Desktop. From the contex...
5
by: remya1000 | last post by:
i'm using VB.NET 2003 application program. by using OpenFileDialog, we can select the file name or file path. OpenFileDialog1.ShowDialog() pgmPath.Text =...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
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...
0
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,...

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.