Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 334
  • Last Modified:

StatusBarPanel Click Event

Does anybody have a solution for the following:

I have a StatusBar with 2 panels.

I need to pop a message box when I click on the 2nd panel. (named panel2)

Any ideas?
0
cjinsocal581
Asked:
cjinsocal581
1 Solution
 
cyberdevil67Commented:
Private Sub StatusBar1_PanelClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.StatusBarPanelClickEventArgs) Handles StatusBar1.PanelClick
   Select Case StatusBar1.Panels.IndexOf(e.StatusBarPanel)
     Case 0
       MessageBox.Show("You have clicked Panel One.")
     Case 1
       MessageBox.Show("You have clicked Panel Two.")
   End Select
End Sub
0
 
cjinsocal581Author Commented:
Perfect. Thanks.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now