M
Mika Mähönen
Hello!
I have Windows Form application containing StatusBar (sb below) and also
ContextMenu for this StatusBar. StatusBar contains 2 panels, and I want to
show ContextMenu only if the MousePointer is on the sb.Panels(1) (and right
MouseButton is used) - how to do it? Maybe code below needs to be changed
but how ?
Private Sub sb_MouseUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles sb.MouseUp
If e.Button = MouseButtons.Right Then
ShowContentMenu(sender)
End If
End Sub
Thanks in advance!
Mika from Finland
I have Windows Form application containing StatusBar (sb below) and also
ContextMenu for this StatusBar. StatusBar contains 2 panels, and I want to
show ContextMenu only if the MousePointer is on the sb.Panels(1) (and right
MouseButton is used) - how to do it? Maybe code below needs to be changed
but how ?
Private Sub sb_MouseUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.MouseEventArgs) Handles sb.MouseUp
If e.Button = MouseButtons.Right Then
ShowContentMenu(sender)
End If
End Sub
Thanks in advance!
Mika from Finland