Vbevents - CIS 338 Events Dr Ralph D Westfall April 2009 What Is an Event an event is when something happens common user events start the program

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS 338: Events Dr. Ralph D. Westfall April, 2009
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
What Is an Event? an event is when something happens common user events start the program press a key click the mouse move the mouse close/end the program
Background image of page 2
Other Events events don't have to be from the user time (update virus checker every Wednesday at 10 AM) e-mail message arrives A:\ drive not ready event happens when program tries to read or write the missing diskette
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Event Driven Programming interactive programs respond to events generated by users, by the operating system, possibly by sensors, and sometimes by the application itself object oriented languages are well suited for writing interactive programs event "listeners" can be added to Java objects, are built into many VB.NET
Background image of page 4
Common Controls Events Click – with left mouse button MouseDown – click with either button MouseMove – cursor moved over object Enter – object becomes "active" user tabs to it, or clicks on it (GotFocus*) Leave – loses active status (LostFocus*) KeyDown – key pressed when object has focus
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/13/2009 for the course CIS 338 taught by Professor Westfall during the Winter '09 term at Cal Poly Pomona.

Page1 / 12

Vbevents - CIS 338 Events Dr Ralph D Westfall April 2009 What Is an Event an event is when something happens common user events start the program

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online