Example of Using SetUEvent, ON UEVENT to Detect Mouse Presence (31936)
This article was previously published under Q31936
SUMMARY
The following example uses the SetUEvent routine and the ON UEVENT
statement to trap a user-defined event. An event occurs in the sample
program below if the Microsoft Mouse is not installed. The program
traps the event if and when it occurs, and then prints a message.
The user-defined event-trapping feature is found in QuickBasic version
4.00b, Microsoft Basic Compiler versions 6.00 and 6.00b for MS-DOS,
and Microsoft Basic Professional Development System (PDS) versions
7.00 and 7.10 for MS-DOS. The SetUEvent routine and the ON UEVENT
statement are not found in QuickBasic version 4.00 or earlier.
| Modification Type: |
Minor |
Last Reviewed: |
1/8/2003 |
| Keywords: |
KB31936 |
|