AccessKey in a Button !

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ioannis Stefis

    #1

    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



  • Herfried K. Wagner [MVP]

    #2
    Re: AccessKey in a Button !

    "Ioannis Stefis" <stefsin@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/>

    Comment

    • Rory Becker

      #3
      Re: AccessKey in a Button !

      >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


      Comment

      • =?Utf-8?B?S2VycnkgTW9vcm1hbg==?=

        #4
        RE: AccessKey in a Button !

        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
        >
        >
        >
        >

        Comment

        Working...