DEV Community


Get Win32 legacy control's tooltip text programmatically

davidkou profile image XinyuStudio ・1 min read

I would like to get the tooltip text for win32 legacy control (not WPF controls that inherently support UI Automation).

Screenshot of the buttons

What I have done:

  • Given a button of interest, I've got its AutomationElement, and its bounding rect
  • I moved the mouse over this button (in code);
  • Thread.Sleep(1500) to…

Discussion (0)

Editor guide