What's an Event in Visual Basic?

Thursday, September 10, 2009 ·

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,


3 comments:

printer laser cartridges said...
September 19, 2010 at 10:37 PM  

Visual basic is one of even-driven programming. With the event you also can activate command to sent your output to printer.

printer laser cartridges said...
September 20, 2010 at 11:07 AM  

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.

Laser Printer Cartridges said...
September 26, 2010 at 3:21 PM  

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