JavaScript Editor JavaScript Editor     JavaScript Debugger

Previous Section Next Section

Main Page

Handling Status Bar Panel Clicks

To handle status bar panel clicks, you can use the PanelClick event. The actual panel that caused the Click event is passed to you in the StatusBarPanel property of the StatusBarPanelClickEventArgs object passed to this event's handler, so you can determine what panel was clicked and take appropriate action:

Private Sub StatusBar1_PanelClick(ByVal sender As System.Object, _
    ByVal e As System.Windows.Forms.StatusBarPanelClickEventArgs) _
    Handles StatusBar1.PanelClick
    If e.StatusBarPanel Is StatusBar1.Panels(1) Then
        MsgBox("You clicked " & e.StatusBarPanel.Text)
    End If
End Sub
Previous Section Next Section

JavaScript Editor Free JavaScript Editor     JavaScript Editor