Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MouseMove, Make Label Disappear

Status
Not open for further replies.

darinmc

Technical User
Feb 27, 2005
171
GB
I have very simple code, when mouse moves OVER the control (EmpMobileNo), then the label is visible showing information.

How would I code it so that when the mouse moves OFF the control, the label will not be visible??

Private Sub EmpMobileNo_MouseMove(Button As Integer, Shift As Integer, x As Single, Y As Single)

Me.lblInfo.Caption = Me.EmpMobileNo
Me.lblInfo.Visible = True

End Sub

Thx
Darin
 
Code:
Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  Me.lblInfo.Visible = False  
End Sub

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Thank you, I didnt realise there was a MouseMove on the form detail..
Darin
 
It's a pretty hack. I use it for my own "menu" forms, using the onlick event of labels to open up various other forms, and using the mousemove event to change the lable background color when the mouse is over it, then changing it back when it leaves it, giving it a "webpage" like effect that some many users are familiar with these days!

The Missinglinq

Richmond, Virginia

There's ALWAYS more than one way to skin a cat!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top