Access Keys in VB.NET

J

JGPa

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_0_0_0_0/dotnet-languages-vb.ht

Posted via DevelopmentNow.com Group
http://www.developmentnow.com
 
G

Guest

"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/archive/2005/05/03/414317.aspx
 
H

Herfried K. Wagner [MVP]

JGPa said:
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>
 
H

hoppy

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_0_0_0_0/dotnet-languages-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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top