Pen Drive
-
i want to check through my C# code, Pen Drive Connect to computer yes or not only.
-
i want to check through my C# code, Pen Drive Connect to computer yes or not only.
I don't think there's an event for that, but you CAN iterate over available drives and work out if any are removable. DriveInfo[] drives = DriveInfo.GetAllDrives() ( something like that ). Then, each one has an enum that tells you if it's a HDD, if it's optical, if it's removable.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
i want to check through my C# code, Pen Drive Connect to computer yes or not only.
check the following.. http://www.codeproject.com/KB/system/DriveDetector.aspx[^]
.....