Solved

accelerators

Posted on 2004-10-23
173 Views
Last Modified: 2010-04-23
I added accelerators  to my buttons in a winform app, however they don't show (the underline under the accelerator letter).  When i alt-tab to another app then alt-tab back to my app you can see them... Why cant i see them when the form first loads??

Im using Win XP and VS 2003 if that matters.
0
Question by:flavo
    7 Comments
     
    LVL 16

    Assisted Solution

    by:burakiewicz
    they don't show up until the alt button is pressed. Not sure how to get them to show up without hitting alt first
    0
     
    LVL 38

    Accepted Solution

    by:
    Right click on desktop, select properties.  Effects tab, uncheck "Hide keyboard navigation indicators until I press the Alt key."  This is a feature of Windows and has nothing to do with the setup of your accelerators in VS.
    0
     
    LVL 34

    Author Comment

    by:flavo
    As much as it sickens me, i used

     SendKeys.Send("%")

    at the end of my Form_Load events.

    Works, but still very disapointed i had to resort to sendkeys....
    0
     
    LVL 38

    Expert Comment

    by:PaulHews
    If it was me, I would just go with the Windows standard... If people want to see the accelerators, they either press tab or they uncheck the setting in the doothingy effects Tab.  It's better for your program to behave the same way as other programs that they use, than to try and buck the system (and use sendkeys....) for your personal preference.

    0
     
    LVL 34

    Author Comment

    by:flavo
    Ill talk to the client and see what he wants..

    Thanks Guys!

    Dave
    0
     
    LVL 38

    Expert Comment

    by:PaulHews
    Thanks for the points, flavo.  :)
    0
     
    LVL 34

    Author Comment

    by:flavo
    Thank you!
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now