Windows Forms

I am trying to create a Windows-Based Application from the Command Line based on a book calles "Visual C# 2005 Recipes."

The book calls for the following two "using" headers:

using System;

using System.Windows.Forms;

The using System call works, but the "using System.Windows.Forms;" returns an error that "System" does not contain the namespace "Windows."

How do I get the "Windows" namespace loaded so I can create a Windows-based application from the command line.

Thanks for your help.



Answer this question

Windows Forms

  • Asmitha Santhiar

    You need to add a reference to System.Windows.Forms.dll.

  • Windows Forms