Event Sequences in Visual Basic VB6
From Free Knowledge Base- The DUCK Project: information for everyone
Action | Events triggered (in order) | |
form load | Form_Load Form_Resize Form_Activate firsttabindexcontrol_GotFocus Form_Paint | |
form minimize | Form_Resize | |
form restore from icon | Form_Paint (note: no Form_Resize) | |
form maximize | Form_Resize Form_MouseMove (note: even with no mouse movement!) Form_Paint | |
form restore from max | Form_Resize | |
form move by drag | Form_MouseMove... | |
form resize by drag | Form_MouseMove... Form_Resize Form_Paint Form_MouseMove... (note 2nd 'relative' move) | |
form close | Form_QueryUnload Form_Unload | |
click in text box | Text1_MouseMove... (only when Text1.Enabled is True) (sets Text1.SelStart BEFORE MouseDown event) Text1_MouseDown (note: before LostFocus!) prevcontrol_LostFocus Text1_GotFocus Text1_MouseUp Text1_Click | |
single character in text box | Text1_MouseMove... Form_KeyDown (if Form.KeyPreview is True) Text1_KeyDown Form_KeyPress (if Form.KeyPreview is True) Text1_KeyPress Text1_Change Form_KeyUp (if Form.KeyPreview is True) Text1_KeyUp | |
combo box set by listindex | Combo1_Click (note: no Change event!) | |
single character in combo box | Combo1_GotFocus Combo1_KeyDown Combo1_KeyPress Combo1_Change Combo1_KeyUp | |
combo box select | Combo1_DropDown (note: before GotFocus!) Combo1_GotFocus Combo1_Click (note: no Change event!) | |
click on grid cell | Grid1_RowColChange (note: before GotFocus!) Grid1_MouseDown Grid1_GotFocus Grid1_SelChange Grid1_MouseUp Grid1_Click | |
click on Command1 while in Text1 | Form_MouseMove... Command1_MouseDown (note: before LostFocus!) Text1_LostFocus Command1_GotFocus Command1_Click (note: before MouseUp!) Command1_MouseUp | |
tab from Text1 to Text2 | Text1_LostFocus (note: LostFocus before GotFocus) Text2_GotFocus |