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

Access Keys in VB.NET

Has anyone else experienced this problem? I have a VB.NET client/server program where I put an '&' in the .Text property of a button to provide access key function.

In development mode, the screen control displays the underline character under the appropriate .Text letter, however, once I create the .EXE, the screen no longer shows the underline character to indicate the proper hotkey even though, if you know which key to use, it works ok

From http://www.developmentnow.com/g/38_0...anguages-vb.ht

Posted via DevelopmentNow.com Group
http://www.developmentnow.com
Nov 21 '05 #1
3 6974
"Starting with Windows 2000, keyboard indicators such as underlined
accelerators and focus rectangles (collectively known as "keyboard cues") are
hidden by default, and are revealed only when you start using the keyboard.
You can control this behavior from the Desktop Control Panel, under
Appearance, Effects, "Hide underlined letters for keyboard navigation until I
press the Alt key".

Note that this setting actually controls both underlined letters and focus
rectangles, even though the text describes only one of the effects.
Underlines are hidden until you press the Alt key, and focus rectangles are
hidden until you either press the Alt key or press the Tab key."

taken from:
http://blogs.msdn.com/oldnewthing/ar...03/414317.aspx

"JGPa" wrote:
Has anyone else experienced this problem? I have a VB.NET client/server program where I put an '&' in the .Text property of a button to provide access key function.

In development mode, the screen control displays the underline character under the appropriate .Text letter, however, once I create the .EXE, the screen no longer shows the underline character to indicate the proper hotkey even though, if you know which key to use, it works ok.

From http://www.developmentnow.com/g/38_0...nguages-vb.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com

Nov 21 '05 #2
"JGPa" <no****@developmentnow.com> schrieb:
Has anyone else experienced this problem? I have a VB.NET client/server
program where I put an '&' in the .Text property of a button to provide
access key function.

In development mode, the screen control displays the underline character
under the appropriate .Text letter, however, once I create the .EXE, the
screen no longer shows the underline character to indicate the proper
hotkey


This behavior is by design.

Showing the keyboard navigation indicators
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=showaccelerators&lang=en>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3
JGPa<no****@developmentnow.com> wrote in
news:8f**********************************@msnews.m icrosoft.com:
Has anyone else experienced this problem? I have a VB.NET
client/server program where I put an '&' in the .Text property of a
button to provide access key function.

In development mode, the screen control displays the underline
character under the appropriate .Text letter, however, once I create
the .EXE, the screen no longer shows the underline character to
indicate the proper hotkey even though, if you know which key to use,
it works ok.

From
http://www.developmentnow.com/g/38_0...nguages-vb.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com


Is windows is set to hide it until the alt key is pressed?

right click desktop
Properties
Appearance
effects
hide blah blah - the last setting.
Nov 21 '05 #4

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

Similar topics

3
by: Wayne Wengert | last post by:
I created a Windows Form with a couple of menu items. I added access keys (e.g. &Clock) and those show up as underlined characters on the development window but not when I run the program. Is there...
2
by: AlanF | last post by:
We have defined access keys for both our menu choices and buttons. However, when the menu displays, the access key "underline" on the menu does not display until we press the ALT key. We can toggle...
9
by: D. D. Brierton | last post by:
I'm having a problem with the W3C validator: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.microemissive.com%2F I don't understand this error message: Line 117, column 61: an attribute...
3
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...
1
by: Fay Yocum | last post by:
Why don't the underlines show up on access keys until someone presses the Alt key once. Is there any way to make it show up when the program is started? We can't expect the user to be smart enough...
4
by: Kevin | last post by:
Hello. My app uses user-based menu generation where all of the menu items are loaded from a SQLServer 2k database when the user logs in to the app. All is well except I cannot get an Access Key to...
0
by: Pooja | last post by:
Hi guys, I have been struggling with this problem for quite a sometime now. Before a state down my problem wanna give an exmaple: 1. Open a MsWord document. 2. Open the Page Setup dialog box....
4
by: Bob Rock | last post by:
Hello, I'd like to programmatically access keys and values of on .resources file embedded in my assembly. I've seen that the assembly class provides the GetManifestResourceStream method .......
0
by: Duncan Smith | last post by:
Adding the office 2003 style menus to an MFC app is easy with CWinFormsControl< and MenuStrip, but it seems that the access keys - "&File" for ALT+F are not supported. How do I enable the access...
1
by: blad3runn69 | last post by:
Hello, Was hoping someone could suggest possible causes for form command button shortcut keys (ie. ALT+key) not to respond. Thanks :) The form is a search forrm. Shortcuts only work when there are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...

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.