VB.NET MenuStrip and StatusStrip

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
 
R

rowe_newsgroups

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top