How can a 2019 windows app to access the desktop start bar menus?

Mike H 1 Reputation point

I have a 2019 windows app that uses NativeMethods.keybd_event() and SendKeys.Send() to automatically navigate thru the desktop start bar menus. After a series of SendKeys.Send()'s one of the start menus is selected and a tooltip is displayed. Is there an API I can use in my app to retrieve the selected start bar menu text/tooltip? Thanks.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,557 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Castorix31 81,341 Reputation points

    Use UI Automation
    (Inspect tool from SDK to do tests)

    0 comments No comments

  2. Dylan Zhu-MSFT 6,401 Reputation points

    Hi MikeH,

    Please refer to this blog: The TaskBar and VB.NET, maybe it could help you.

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our * *documentation* to enable e-mail notifications if you want to receive the related email notification for this thread.**

    0 comments No comments