Private Sub framePDF_MouseMove(ByVal... )
framePDF.BackColor = &H80000012&
So, the frame’s color is changing.
I can’t find the event to return the color back – when the cursor is away from the frame ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In vba and VB6 there is no MouseLeave event.
The best way to achieve this is to start a timer when the mouse enters the frame.
Then in the timer code check to see if the mouse pointer is still within the bounds of the frame. If not change the colour back and stop the timer
Put this code in a module:
Create a timer on your form, set
interval =10Enbaled = FalseThen the code looks something like this: