Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 16044

[RESOLVED] VS2019 type “AutomationElement” is not defined

$
0
0
I added reference to UIAutomationTypes and to UIAutomationClient and use those imports

Code:


    Imports System.Windows.Automation
    Imports System.Runtime.InteropServices
    Imports System.Text

But I get an error: type "AutomationElement" is not defined when I use that code

Code:

Dim rootElement As AutomationElement = AutomationElement.FromHandle(hwnd)
I even get an error when I add
Code:

using System.Windows.Automation.AutomationElement
AutomationElement is not a member of System.Windows.Automation

what is wrong?

Viewing all articles
Browse latest Browse all 16044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>