Tuesday, March 17, 2009

System Driver Information : Windows Application

System.Management namespace has lot of classes which will help us in reading Operating system information, Driver information etc.

Lets build a sample application which retrieves what all drivers installed in system.

Create a Windows Application and add one Combo Box and One Button and One List box as shown in below screen shot

image

What we are going to do here is, first load all the driver names in the Combo Box and after selecting any driver from Combo Box and click on Show Driver Details button we will show all details regarding that driver.

For loading driver names into Combo Box initially we write following code in Form_Load event

image

Once a driver is selected and clicked on Show Driver Details button then we will show all the details of the driver in list box for that we write following code in Button1_Click event

image

Now we are ready with our code please build run and test

image

Hope this helps.

Tags: Driver Information, C#, .NET, Windows Application, System.Management

No comments:

Post a Comment