473,413 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

System.Windows

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
Nov 15 '05 #1
4 1254
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.
--
Andrew Gnenny
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"Oleg" <bi***@yahoo.com> wrote in message
news:08****************************@phx.gbl...
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

Nov 15 '05 #2
Oleg <bi***@yahoo.com> wrote:
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).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #3


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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #4
Open the Solution Explorer, right mouse click on references, pici Add
Reference, under the .NET tab pick the reference you are looking for.

"Oleg Shnayder" <bi***@yahoo.com> wrote in message
news:ui**************@TK2MSFTNGP12.phx.gbl...


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
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Terrence | last post by:
I am doing some of the C# walkthroughs to transition from VB to C#. When I try to execute static void Main() { Aplication.Run(new Form1()) } I raise a 'System.NullReferenceException" in...
2
by: Greg Bacchus | last post by:
Hi, I'm getting an exception that really has me stumped. It's sporadic at best, it's only happened a handful of times. This particular time it happened when the user pressed 'Alt-S' to save the...
1
by: lwickland | last post by:
Summary: System.Net.ScatterGatherBuffers.MemoryChuck allocates inordinately large bytes when sending large post data. The following application consumes inordinate quantities of memory. My code...
6
by: tom k. | last post by:
H I have XP and can't run any of my Visual Basic .net projects. I get this error every time I try to run one: An unhandled exception of type 'System.ArithmeticException' occurred in...
2
by: Graeme Neath | last post by:
I'm having a very bizarre problem. I have a vb.net application which uses the ESRI MapObjects 2.2 component (unmanaged code). When I use the MapObjects built-in function 'CopyMap' to copy the map...
4
by: Roger Aikin | last post by:
I've converted a VB6 project to VB.Net 2005. (Actually using vstudio pro 2005). I'm on a machine that also has VB6 and Vstudio.net 2003 on it. The project uses Word, Excel, MapPoint and SqlClient...
3
by: forest demon | last post by:
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user...
1
by: mfunkmann | last post by:
Hi, I recently got an error and I don't know how to fix it: Error 1 'System.Data.DataColumn' does not contain a definition for 'Windows' C:\c#\CsharpPRO\Form1.Designer.cs 304 77 CsharpPRO I...
2
by: =?Utf-8?B?TmF0aGFuIFdpZWdtYW4=?= | last post by:
Hi, I am wondering why the .NET Framework is quite different from Win32 API when it comes to displaying system modal message boxes. Consider the four following types of system modal message...
0
by: =?Utf-8?B?TWFyY3VzIFNjaGFlZmVy?= | last post by:
Hi everybody, I'm working on my application for appr. 2 years and now suddenly I got an System.TypeInitializationException in one of my global modules. The error is thrown at the first call of a...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.