System.Windows

  • Thread starter Thread starter Oleg
  • Start date Start date
O

Oleg

Hi People,
sorry that I will repeat myself, the previous message
wasn't cleared.

Here is the error:

using System;
using System.Windows.Forms; <------------- ????
using System.Threading;

When I tried to compile: the compiler gave me errors:

D:\Oleg\Practice
C++\samples\VCSharp\AutoLogout\AutoLogout.cs(2): The type
or namespace name 'Windows' does not exist in the class or
namespace 'System' (are you missing an assembly reference?)

Does anybody know how can I fix this.

I am using Visual Studio .NET (version 7)

Thank you,

Oleg
 
Hi,

To use the classes defined in the System.Windows.Forms namespace you should
add the reference to assembly named 'System.Windows.Forms.dll' to your
project.
 
Oleg said:
sorry that I will repeat myself, the previous message
wasn't cleared.

Here is the error:

using System;
using System.Windows.Forms; <------------- ????
using System.Threading;

When I tried to compile: the compiler gave me errors:

D:\Oleg\Practice
C++\samples\VCSharp\AutoLogout\AutoLogout.cs(2): The type
or namespace name 'Windows' does not exist in the class or
namespace 'System' (are you missing an assembly reference?)

Does anybody know how can I fix this.

You need to add a reference to the System.Windows.Forms.dll assembly
within the project (not in the code itself).
 
Hello,

I am really new to VC#.
Could you please tell me how can I add the reference to assembly named
'System.Windows.Forms.dll' to my
project.
Thank you in advance,

Oleg
 
Open the Solution Explorer, right mouse click on references, pici Add
Reference, under the .NET tab pick the reference you are looking for.
 
Back
Top