2
Reply

Total noob - References?

Chris

Chris

Dec 26 2006 9:33 AM
2.3k
Hi there.

OK, I've tried to learn C# before, rather half-heartedly, but never got anywhere with internet tutorials and helpfiles. Now I've got a hold of a decent C# book, and I'm stumped already!

I'm using Visual Studio 2003. If I start an "Empty Project" from the menu in VS, then add a "Code file" and enter the following:

using System;
using System.Windows.Forms;

Then I get errors. In my book, this is all it says to do. I have noticed, however, that if I create a "Windows Application" instead, delete all the automatic code, and enter my two lines, it works. This seems to be related to the "References" section in the VS Window, but my book (which is IDE-independent!) says nothing of this.

I don't really want to work around it, I'd far rather understand it. If anybody can help, or point me in the right direction, I'd be very appreciative. Apologies for the n00b post!

Chris


Answers (2)