Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Audit Info Logic Location Best Practice
Message
 
À
21/10/2004 08:09:55
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00953023
Message ID:
00953607
Vues:
16
Joe,

>Not sure how to do that as SystemInformation is found in the System.Windows.Forms and OakLeaf.MM.Main.Windows.Forms namespaces. It is my understanding that in order to use that library, my class must inherit from one of those namespaces. I am rather new to this but is my understanding correct or is there a different implementation of your suggestion that I can employ?

You're on the right track, but you don't "inherit" from those namespaces...you simply reference those namespaces with the "using" (C#) or "Imports" (VB .NET) statements. That said, you really don't want to reference classes in the Windows Forms namespaces if you can avoid it, because this requires you to include the assembly in your business object project too.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform