An event is an action that recognized by a control or a form. For examples moving mouse over a control, clicking a mouse, pressing a key, etc. You can write code in an event that runs when the event occurs.
Every object in Visual Basic has a set of event that it recognizes. Each object has specific events. Here are list of some events than owned by each object:
Object name: CommnandButton
Events owned: Click, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData and OLEStartDrag.
Object name: TextBox
Events owned: Change, Click, DblClick, DragDrop, DragOver, GotFocus,
What's an Event in Visual Basic?
Subscribe to:
Post Comments (Atom)
Labels
- Stop Dreaming Start Action (1)
- Table of Contents (1)
- VB6 Programming (36)
- VB6 Sample Program (16)
3 comments:
Visual basic is one of even-driven programming. With the event you also can activate command to sent your output to printer.
VB is one of event driven programming, that allows us to add coding for the events. For example we can add coding in order sent document to printer while a button clicked.
Some things you need to consider when buying a color laser printer, such as: budget you are prepared, how many pages will you print, how many users that will use the printer. You should also consider to buy a wireless laser printer.
Post a Comment