Results 1 to 4 of 4

Thread: shortcut

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79

    shortcut

    I have a problem with shortcuts on buttons.
    Just like I know from VB6 and like I read in a VB.net documentation I use the ampersand & in the text property to assign a shortcut to my button (e.g. button.text = "&Cancel"). Now I have a funny effect: the first time I open my form, everything looks like expected, the shortcut letter has an underscore. But when I open the form a second time, no underscore is there.
    Perhaps you need to know that I am developing an AddIn for Word2000.

    Any ideas?

  2. #2
    Member
    Join Date
    Aug 2002
    Location
    Netherlands
    Posts
    39

    maybe simple?

    Do you edit the text of the button during runtime? what is the code?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Posts
    79
    No, I don't edit the text during runtime. This behaviour is in all of my forms the same. Once I opened a form, no underscore is seen in any form. Not in the button and not in my menu either. I need to click ALT to see the shortcut.

  4. #4
    Hyperactive Member Bananafish's Avatar
    Join Date
    Jan 2001
    Posts
    394
    Access Keys
    -----------
    The issue regarding the visbility of access key markers on the menu is apparently an Operating System feature for Win2K. To display the access keys the Alt key must be depressed.

    This feature can be turned of by going to Conrol Panels->Display->Effects->Visual Effects and uncheck Hide keyboard navigation indicators until I use the Alt key.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width