Hi,

"DriveDetector();" work with "using Dolinay;", but "Dolinay" is only in Framework 2.0

Now i work with Framework 3.5.

How i can run "DriveDetector();" in FW 3.5?

Recommended Answers

All 2 Replies

I believe you are referring to Jan Dolinay's "Detecting USB Drive Removal in a C# Program"? This is not part of the .NET framework to my knowledge. In addition, the CodeProject download contains only the DriveDetector.cs file, which defines the Donlinay namespace; so there probably is not an external library your project needs...

All you need to do is add this file to your project. If you have lost it, just download it again, then add it to your project: http://www.codeproject.com/KB/system/DriveDetector.aspx

Thanks ;)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.