Error in "System.Windows.Automation"

  • Thread starter Willian F. Lopes
  • Start date
W

Willian F. Lopes

Hi everybody!

When I put the code

Imports System.Windows.Automation

into my form a get a error message saying that namespace cannot be found...
but I have downloaded another project with the same namespace and it works
fine. How do I fix/patch/correct this?

Thanks!

Willian
 
F

Family Tree Mike

Willian F. Lopes said:
Hi everybody!

When I put the code

Imports System.Windows.Automation

into my form a get a error message saying that namespace cannot be
found... but I have downloaded another project with the same namespace and
it works fine. How do I fix/patch/correct this?

Thanks!

Willian


I have not ever used this namespace, but that is because I rarely used WPF.
According to MSDN, the namespace: "Provides support for Windows Presentation
Foundation (WPF) UI Automation clients."

Is your application WPF?
 
J

Jack Jackson

Hi everybody!

When I put the code

Imports System.Windows.Automation

into my form a get a error message saying that namespace cannot be found...
but I have downloaded another project with the same namespace and it works
fine. How do I fix/patch/correct this?

Thanks!

Willian

It sounds like you haven't added a reference to the namespace. In the
project properties, on the References tab, add
System.Windows.Automation.

The Imports statement does not add a reference to your project. It
simply allows you to reference items in the namespace without fully
qualifying the names.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top