1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Tutorial How to Detect USB Plugin and Unplug using VB6

Discussion in 'Coding, Programming' started by CodeWarrior, Feb 16, 2014.

  1. This tutorial show you how to monitor USB device if plug or unplug and the drive letter

    First download 2 usb image type. This 2 image is use for monitoring if Plugin or unplug.
    Download Image Usb Open and Usb Close...

    Second open your vb6 and create new project and name it

    Third Add the following object to the form

    1. One Label
    2. One Timer, Set Enable to true and interval to 1
    3. Two Image, Image1 change image to USB Close, Image2 change image to USB Open

    Now for the code


       Sorry you need to Register / Login to see this Codes!    

    Now Press F5 to start debuging and try to insert your USB Flash Drive
    Happy Happy Coding....

    This code credited to original creator it's ME... :)
  2. Nice One tol :D

    Same tayo PRogrammer :)
    CodeWarrior likes this.
Tags / Keywords: