showing tool tip texts

How do I show a tooltip text in the status bar when the mouse is over a menu item?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sub menu1_MouseOver()

  Form1.caption = "You are about to select menu1."

End Sub

sub Form1_MouseOver()

  Form1.caption = app.title & " " & app.major & "." & app.minor
' this will set the caption back to the app name when your mouse leaves the menu

End Sub
mhdhallakAuthor Commented:
Does this need VB 6.0?
Because I have 5.0 and I tried it but nothing showed up!!
Hi there ,

I hope I have been able to understand the problem Right .
Add a tool bar and a  status bar to a form and add a few Button to the toolbar with their Show tooltips check box  enabled. Then add the following code to mouse move event of toolbar .
Private Sub Toolbar1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim n As Integer
Dim wid As Long
wid = Toolbar1.ButtonWidth
For n = 1 To Toolbar1.Buttons.Count
If x > n * wid And x < (n + 1) * wid Then
   If n = Toolbar1.Buttons.Count Then
      StatusBar1.Panels(1).Text = Toolbar1.Buttons(n).ToolTipText
      StatusBar1.Panels(1).Text = Toolbar1.Buttons(n + 1).ToolTipText
      Exit Sub
   End If
ElseIf x < wid Then
   StatusBar1.Panels(1).Text = Toolbar1.Buttons(1).ToolTipText
    Exit Sub
End If

End Sub

<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>..I have dynamically gathered the number of toolbar buttons and their width(Assumed equal).Then tooltip show according to X parameter .
Consider Y parameter as well if there are two or more rows of buttons .

Hope this helps. keep me updated .



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mhdhallakAuthor Commented:
I am afraid you did not understand my question right.

My question was about showing the tooltips texts in the status bar when the mouse is over a MENU item. You know, like the menues in Windows Explorer.

Do any of you guyz know how to do that?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.