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

  • Thread starter Thread starter Rob Deacon via .NET 247
  • Start date Start date
R

Rob Deacon via .NET 247

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
 
Rob said:
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;
 
Back
Top