Search code examples
vb6statusbarmousemove

Using MouseMove() with Status Bar


I have been searching for an answer on Stack Overflow and on Google but found nothing. I am doing this as a school project and can not get my head around it. i need the status bar to show "Ready" when the mouse is not over the text boxes. This is the code for one of the text boxes:

Private Sub Text3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
StatusBar1.SimpleText = "Last Name of Student"
End Sub

How can I make it that when the mouse is somewhere else it says "Ready".

Thanks to anyone that could help.


Solution

  • I just created a mousemove for every object on the screen and coded it to show the information on the status bar.