VB.NET MenuStrip and StatusStrip

  • Thread starter Thread starter S. Viswanathan
  • Start date Start date
S

S. Viswanathan

Hi!

When mouse over on menuitem, the corresponding menuitem text should display
in StatusStrip control.

How to do this?

Simillarly for when mouse over on toolstrip item, the corresponding
toolstrip button tag property need to be taken.

How to do this?

Thanks
S.Viswanathan
 
When mouse over on menuitem, the corresponding menuitem text should display
in StatusStrip control.

How to do this?

Just hook the MouseEnter/MouseLeave events and set the statusstrip's
label's text property manually.

i.e. Map the events to this methods:

Private Sub toolStripMenuItem_MouseEnter(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Me.ToolStripStatusLabel1.Text = DirectCast(sender,
ToolStripMenuItem).ToolTipText
End Sub

Private Sub toolStripMenuItem_MouseLeave(ByVal sender As
System.Object, ByVal e As System.EventArgs)
Me.ToolStripStatusLabel1.Text = ""
End Sub
Simillarly for when mouse over on toolstrip item, the corresponding
toolstrip button tag property need to be taken.

How to do this?

I have no idea what you are asking here - what corresponding button?

Thanks,

Seth Rowe
 
Back
Top