{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

vbevents - CIS 338 Events Dr Ralph D Westfall April 2009...

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 Document Right 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 Document Right 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 ones
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*)
Background image of page 5

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

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

{[ snackBarMessage ]}