|
|
Title | Use a status bar |
Description | This example shows how to use a status bar in Visual Basic 6. It uses the StatusBar control's Panels collection to access a Panel's Text property. |
Keywords | StatusBar, status bar, Panel, Panels |
Categories | Controls |
|
|
When the user clicks an option button, the program displays the choice in the StatusBar's first panel. It uses the Panels collection to access the first Panel, and sets its Text property to the choice number.
|
|
Private Sub Option1_Click(Index As Integer)
StatusBar1.Panels(1).Text = "Choice: " & Format$(Index)
End Sub
|
|
|
|
|
|