-1

"The type or namespace name 'Forms' does not exist in the namespace 'System.Windows' (are you missing an assembly reference?)"

I'm sorry, this is probably a dumb question but I'm totally new to C# and visual studio.

Any suggestions on how to fix this ? I need this for a plugin in Revit.

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Jordi1302
  • 65
  • 7
  • add `using System.Windows.Forms;` at the top of your code. Or right click on the error code and select "Resolve". Also see: http://stackoverflow.com/questions/6639468/c-forms-does-not-exist-in-the-namespace-system-windows – Habib Feb 16 '15 at 14:50
  • So have you added a reference to the `System.Windows.Forms` assembly in your code? What project type did you create? – Jon Skeet Feb 16 '15 at 14:51
  • [How to: Add or Remove References By Using the Add Reference Dialog Box](https://msdn.microsoft.com/en-us/library/wkze6zky.aspx) – Selman Genç Feb 16 '15 at 14:52
  • Right click on your project-> Add Reference -> .Net -> System.Windows.Forms – Nadia Chibrikova Feb 16 '15 at 14:55

1 Answers1

0

Just figured it out. I need to add a reference to my project in the solution tree.

Sorry about that

Jordi1302
  • 65
  • 7