By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,664 Members | 1,592 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,664 IT Pros & Developers. It's quick & easy.

System.Windows.Forms Namespace completely missing from my library. Any Ideas?

P: n/a
I am just getting into this .NET stuff. Looks really handy. I wastrying to run some standard tests, like throwing up aMessageBox.Show("Code Hit Here - ln 124"); Just to make sure Iwas building things right.

I realize I needed to use a few things from the library to makethis work, one of the big ones being System.Windows.Forms, butit wasn't there in my library at all. I checked at MSN Libraryto find out all the System namespaces and I am missing thesenamespaces:

DirectoryServices
EnterpriseServices
Management
Messaging
ServiceProcess
Windows.Forms
Windows.Forms.Design

My C#.NET install is from the "Microsoft Visual C#.NET Standard -Version 2003" prooduct. There is no indication that I would bemissing such standard stuff as message box classes. Is theresome other version of C# I need to buy to get those classes, ordid I just get a buggy install? BTW, I also installed the fullMSDN Library that came with the program - 3 disks full.

I am at a loss.

Thanks,

Rob Deacon

--------------------------------
From: Rob Deacon

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>CmaP+UJaDk6rkxkO050OKw==</Id>
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Rob Deacon via .NET 247 wrote:
I am just getting into this .NET stuff. Looks really handy. I was trying to run some standard tests, like throwing up a MessageBox.Show("Code Hit Here - ln 124"); Just to make sure I was building things right.

I realize I needed to use a few things from the library to make this work, one of the big ones being System.Windows.Forms, but it wasn't there in my library at all. I checked at MSN Library to find out all the System namespaces and I am missing these namespaces:

DirectoryServices
EnterpriseServices
Management
Messaging
ServiceProcess
Windows.Forms
Windows.Forms.Design

My C#.NET install is from the "Microsoft Visual C#.NET Standard - Version 2003" prooduct. There is no indication that I would be missing such standard stuff as message box classes. Is there some other version of C# I need to buy to get those classes, or did I just get a buggy install? BTW, I also installed the full MSDN Library that came with the program - 3 disks full.

I am at a loss.

Thanks,

Rob Deacon


It sounds like your MSDN documentation install is incomplete. Try
reinstalling it. Also, if you're writing a program that uses functions
in the Windows.Forms namespace, you'll need to add the following line to
the top of the file:
using Windows.Forms;
Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.