Computing.Net > Forums > Programming > USB Events in VB6

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

USB Events in VB6

Reply to Message Icon

Original Message
Name: Shoetung
Date: October 10, 2006 at 20:48:54 Pacific
Subject: USB Events in VB6
OS: XP Pro SP2
CPU/Ram: 3.22Ghz 2GB RAM
Model/Manufacturer: DELL
Comment:

Hello,

I was wondering if anyone knew any VB6 coding that can allow a procedure to run when a USB drive is inserted.

I want to be able to insert my USB drive while I have my program running, and then my program will do an auto backup of it, and manipulate other data, without user input required.

Can this be done in VB6 or will I have to learn something a bit more tech like C/C++ ?

Cheers,
Shoetung.



Report Offensive Message For Removal


Response Number 1
Name: SamRock
Date: October 12, 2006 at 06:02:48 Pacific
Reply: (edit)

Yes, U can do it on VB6.

But I think U will have to use some WinAPIs to help u in identifying if a USB device has been actived or not.

I am not sure if any event can be trigger or this.
May be a Timer with few Seconds of interval will help.

Samuel Roshan


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History




Data Recovery Software