RadioButton problem

  • Thread starter Thread starter mack
  • Start date Start date
M

mack

There may be a design error in the VB 2005 Radio Button: Label a button
"RadioButton&x" (x or any other letter) where "&" denotes that the alt-x key
combination is supposed to evoke the button. With VB 2005, the button
responds to the letter without simultaneously pressing alt. This causes a
problem... if the user presses that key for any unrelated reasons, the
button click is evoked... not usable. Was this an error on the part of MS?
 
mack said:
There may be a design error in the VB 2005 Radio Button: Label a button
"RadioButton&x" (x or any other letter) where "&" denotes that the alt-x
key combination is supposed to evoke the button. With VB 2005, the button
responds to the letter without simultaneously pressing alt. This causes a
problem... if the user presses that key for any unrelated reasons, the
button click is evoked... not usable. Was this an error on the part of MS?

This behavior is by design, and it will only work if a control which does
not expect character input like a textbox has the focus.
 
Back
Top