DriveBar control for C#

21 Sep

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



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

2. Set the images for these drives:


3. Now the drive bar looks-just cool!


4. To add event handler for these toolbar items:

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


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


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

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: Logo

You are commenting using your 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: