Selected Button in any Option Button Control Array
Pass any option button control array, and receive the selected
option button index. Dec 7.2003
Pure VB: Mimicking a Command Button ForeColor Property
Use a Check to create a command button providing control over the text colour.
WM_DRAWITEM: Set Command Button ForeColor
Now command buttons can have their own button text colour.
SendMessage: Visually Pressing a Command Button Through Code
Two methods to visually simulate a button press; one firing the button's Click event, and the second just giving the visual press
feedback. August 21.1999
WM_LBUTTONDOWN: Substitute a Tabbed List for a Combo's Dropdown List
Trapping a combo's dropdown and substituting a standard List control supporting tab stops. Mar 16.2001
WM_LBUTTONDOWN: Substitute a ListView for a Combo's Dropdown List
Trapping a combo's dropdown and substituting a standard ListView control. Mar 16.2001
Pure VB: Centre a Label Within a Container
Tiny routine to vertically and horizontally centre a multi-line label within a form or container control. Feb 12.2000
WM_CONTEXTMENU: Kill the Default Text Box Context MenuEliminating the default textbox context menu via subclassing.
Like what you see here? Help ensure continued VB Classic
development by making a
donation today. Thank you.
Copyright ©1996-2011 VBnet and Randy Birch. All Rights Reserved.