473,569 Members | 2,557 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AccessKey in a Button !

Hi!
I put an & to make an AccessKey in the text property of a Button in MyForm
using the & before the first letter of the text, for example &Spin. I see in
the design mode the S underlined but not in the runtime. Nevertheless the
button is working well when I press the S key! Any suggestion?

Ioannis

Mar 25 '07 #1
3 5613
"Ioannis Stefis" <st*****@otenet .grschrieb:
I put an & to make an AccessKey in the text property of a Button in MyForm
using the & before the first letter of the text, for example &Spin. I see
in
the design mode the S underlined but not in the runtime. Nevertheless the
button is working well when I press the S key! Any suggestion?
This behavior is by design starting with Windows 2000.

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

Mar 25 '07 #2
>I put an & to make an AccessKey in the text property of a Button in
>MyForm
using the & before the first letter of the text, for example &Spin. I
see
in
the design mode the S underlined but not in the runtime. Nevertheless
the
button is working well when I press the S key! Any suggestion?
This behavior is by design starting with Windows 2000.

Yeah there is a windows setting to change this.

Right click desktop
Properties
Appearance
Effects

Hide ....[something or other] unless ALT is pressed.

by default you need to press ALT to show the underlines

Rory
Mar 25 '07 #3
Ioannis,

At least with Windows XP there is an option to hide the underlined letters
until the user presses the Alt key.

This setting can be found here:

Display Properties | Appearance | Effects

Hide underlined letters for keyboard navigation until I press the Alt key

Kerry Moorman
"Ioannis Stefis" wrote:
Hi!
I put an & to make an AccessKey in the text property of a Button in MyForm
using the & before the first letter of the text, for example &Spin. I see in
the design mode the S underlined but not in the runtime. Nevertheless the
button is working well when I press the S key! Any suggestion?

Ioannis

Mar 28 '07 #4

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

Similar topics

6
3189
by: Alex Billerey | last post by:
Hi folks, Not sure that syntax is the right term but anyway... I'm currently working a a new section of a website and I want to make it as accessible as possible - hence the accesskey. On each page there will be around 15 links to other pages. Is there a standard way of marking up the accesskey attribute. Below is the code for the...
3
6164
by: Jim | last post by:
Hi, How can one put an accesskey on a Select (Drop down box) in a form using XHTML 1.0? It won¢t validate as follows: <select accesskey="r" tabindex="3" name="state" size="1"> I can put an accesskey on radio buttons, and text fields without issue. Thanks
1
5372
by: Manan | last post by:
hi All, I'm using a web application. On my .aspx pages I want to add shortcut keying option to textbox, dropdown, and button. I know i can use AccessKey to add shortcuts but I'm having problem with Button control. I want, when user uses Alt + P. I want to give focus to a button control. I have tried button1.Text = "&Print"; didn't work. ...
0
1217
by: david cheng | last post by:
I am trying to load the pdf document through AccessKey. Here is the code <HTML> <body bottomMargin="0" bgColor="gray" leftMargin="0" topMargin="0" rightMargin="0"> <form id="Form1" method="post" runat="server"> <table height="100%" width="100%"> <TBODY><tr> <td vAlign="top" width="80">
1
1343
by: Andre | last post by:
I've set up the accessKey for my Submit button to 'S'. The usual Windows method for letting the user know would be to underline the 'S' in Submit on the button text. How do I do this in the Text property of the control? I tried &Submit - didn't work and I couldn't find anything in the help. Ideas? Thanks. --
1
3468
by: Csaba Gabor | last post by:
Short version: if the user types an alt+ctrl+char combination which leads to a defined character, but s/he's not in a input(text)/textarea, then I'd like that keystroke combination to do the same action that it would have done had there not been a defined character. Longer explanation: I've got a US keyboard and a pseudo Hungarian/German...
0
1784
by: douha | last post by:
Hi all, I have been assigned to write functions in javascript that will invoke an objects accesskey. For example, I have the following html code: <td class="BtnActn"> <div id="DocUndo" class="DocLevelActn"> <a vsds="T1_DOC_HDR"
5
2980
by: Lea GRIS | last post by:
Hello, Are there any generic and CSS standard mean of highlighting an accesskey? I only fond a workaround by encapsulating the corresponding letter in a <em></eminside the label. But it is not applicable for a submit button which label is not a content. Here is en example: <form method="get"...
0
7700
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7614
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
6284
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
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 we have to send another system
0
938
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.