Hello all
I have decided to enter the new era..albeit via VB2005, from VB6. So, I am very new to .net.
One (simple) problem that I have is with the StatusStrip. I really can't find an answer to my problem.
I have a MDI form containing a StatusStrip:
One of my Panels (Items(5))..although they are no called Panels on the StatusStrip, will display a picture of a mailbox if an employee has received and internal mail..via my programme. When the user clicks on this "Panel", a form will open up showing him his message.
My question is: How do I determine which "panel" has been clicked. I have tried everything, but I can't get the index/number of the clicked panel.
The MS site really only goes into the StatusBar in dot net, but it appears as if they are still using panels..which are not available to the StatusStrip in vb2005
My VB6 code looked like this..although I do realize that it is all obsolete now from a coding point of view.
Private Sub SBAR_PanelClick(ByVal Panel As MSComctlLib.Panel)
'*This will only fire if Status Bar Panel 5 is clicked
Select Case Panel.Index
Case Is = 5
If Panel.Picture.Type = 3 Then '*Not sure what Picture.Type = 3 means
frmStickyNotes.Show
End If
End Select
End Sub
I appreaciate any help that you can offer to me
Thanks.
I have decided to enter the new era..albeit via VB2005, from VB6. So, I am very new to .net.
One (simple) problem that I have is with the StatusStrip. I really can't find an answer to my problem.
I have a MDI form containing a StatusStrip:
One of my Panels (Items(5))..although they are no called Panels on the StatusStrip, will display a picture of a mailbox if an employee has received and internal mail..via my programme. When the user clicks on this "Panel", a form will open up showing him his message.
My question is: How do I determine which "panel" has been clicked. I have tried everything, but I can't get the index/number of the clicked panel.
The MS site really only goes into the StatusBar in dot net, but it appears as if they are still using panels..which are not available to the StatusStrip in vb2005
My VB6 code looked like this..although I do realize that it is all obsolete now from a coding point of view.
Private Sub SBAR_PanelClick(ByVal Panel As MSComctlLib.Panel)
'*This will only fire if Status Bar Panel 5 is clicked
Select Case Panel.Index
Case Is = 5
If Panel.Picture.Type = 3 Then '*Not sure what Picture.Type = 3 means
frmStickyNotes.Show
End If
End Select
End Sub
I appreaciate any help that you can offer to me
Thanks.