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

Mike H 1 Reputation point
2020-12-21T18:21:27.547+00:00

I have a VB.net 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
    2020-12-21T19:20:02.32+00:00

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

    0 comments No comments

  2. Dylan Zhu-MSFT 6,401 Reputation points
    2020-12-22T06:48:19.733+00:00

    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