Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running C# from VFP9 1

Status
Not open for further replies.

beedubau

Programmer
Jan 7, 2003
97
AU
I have extensive C# code to sense USB drive insertion - can this module be used directly under VFP 9?

Regards

Bryan
 
You don't have the need fot that, because in the VFP9 solution.app there is a sample for detecting USB drive conect/disconnect.

Code:
cd (_samples)
cd solution
do solution

=> New in VFP9
=> Binding to Windows Message Events
=> Choose "Media Events" in the combobox
=> Click "Enable Events"
=> insert a usb drive, see the messages in the editbox

Look at the source code and make use of it.

Bye, Olaf.
 
Many thanks Olaf,

I take your censure - I was not aware of that in samples.

Regards

bryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top