Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Mar 5, 1999

Use MouseMove for Easy StatusBar Updates

You can easily make your program show descriptive text on a StatusBar control in response to mouse movement. Assign the text to the appropriate panel in the MouseMove events of the appropriate controls, then use the Form_MouseMove event to clear text from the panel:

 
Private Sub txtAddress_MouseMove(Button As Integer, Shift _
	As Integer, X As Single, Y As Single)
	StatusBar1.Panels(1).Text = "Enter Address here."
End Sub

Private Sub txtName_MouseMove(Button As Integer, Shift _
	As Integer, X As Single, Y As Single)
	StatusBar1.Panels(1).Text = "Enter Name here."
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift _
	As Integer, X As Single, Y As Single)
	StatusBar1.Panels(1).Text = ""
End Sub
Ron Schwarz
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date