PC Review


Reply
Thread Tools Rate Thread

Access Keys in VB.NET

 
 
JGPa
Guest
Posts: n/a
 
      9th Aug 2005
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TmVpbCBXZXN0?=
Guest
Posts: n/a
 
      9th Aug 2005
"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
>

 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      9th Aug 2005
"JGPa" <(E-Mail Removed)> 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/>

 
Reply With Quote
 
hoppy
Guest
Posts: n/a
 
      9th Aug 2005
JGPa<(E-Mail Removed)> wrote in
news:8fd0ae69-fd62-48fa-9a2c-(E-Mail Removed):

> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Primary Keys and Foreign Keys - Kick me out of the Access club Dazed And Confused Microsoft Access Getting Started 6 3rd Sep 2007 04:43 PM
Simulating Access shortcut keys, and trapping F-keys press Amir Microsoft Access Forms 2 14th Aug 2004 05:21 AM
Primary Keys: Importing Access DB in Access DB Frank Microsoft Access External Data 2 11th Feb 2004 01:47 AM
Shortcut keys (Access keys) problem =?Utf-8?B?VGltIFBhdHJpY2s=?= Microsoft Dot NET Framework Forms 0 2nd Feb 2004 04:31 PM
Access Keys Wayne Wengert Microsoft Dot NET 3 22nd Jul 2003 04:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:40 PM.