Click here to Skip to main content
14,877,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i defined system.object, but still error coming in the code when i write

Dim mc as management class

the error coming is management class is not defined

please tell me the solution as early as possible

Add a reference to System.Management.dll, then make sure you imported the System.Management namespace at the top of your code file.
Import the appropriate namespace. This simple example[^] might help you get started.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900