Option Button Control
See Also Properties Events Methods
An option button displays an option that can be turned on or off.
Usually, option buttons are used as part of an option group to display multiple choices from which the user can select only one. You can group option buttons by drawing them inside a frame , a picture box , or directly on a form . To group option buttons in a frame or picture box, draw the frame or picture box first, and then draw the option buttons inside. All option buttons within a frame or picture box are treated as a group. Option buttons on a form are also treated as a separate group from any option buttons in a frame or picture box.
While option buttons and check boxes when a user selects an option button, the other option buttons in the same group are automatically cancelled. In contrast, any number of check boxes can be selected. may appear to function similarly, there is an important difference:
AlignmentFQ8OZH FontStrikethru Parent
BackColor1W9T6JQ FontUnderline TabIndex
Caption ForeColor TabStop
DragIcon Height Tag
DragMode HelpContextID Top
Enabled hWnd Value
FontBold Index Visible
FontItalic5NZYQSD Left Width
Click GotFocus LostFocus
DblClick KeyDown MouseDown
DragDrop KeyPress MouseMove
DragOver KeyUp MouseUp
Check Box Control
Drawing a Control
Chapter 3, "Creating and Using Controls"