RSS

DriveBar control for C#

21 Sep

List All the drives on your machine using C# DriveBar control:

DriveBar_R1.png

DriveBar_R2.png

1. Drag a DriveBar control to the form, and it appeas like below:

2. Set the images for these drives:

DriveBar_B.png

3. Now the drive bar looks-just cool!

DriveBar_C.png

4. To add event handler for these toolbar items:

driveBar1.DriveBarItemClick +=new DriveBar.DriveButtonClickEvent(OnDriveBtnClick);

DriveBar_C2.png

Click the “C:” button, Wow, it starts the explorer and browse there!

DriveBar_D.png

p/s: when the USB devices is plugged or unplugged, a nice thing is that the control automatically updates!

Advertisements
 
Leave a comment

Posted by on September 21, 2009 in Dotnet/C#

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: