On Hover change style of button and label

abhiutd

Registered User.
Local time
Today, 03:40
Joined
Jul 28, 2008
Messages
48
Hi,
I have a command button and a label control on a form and when i hover the button i want to change the border color for the button and change the forecolor of the label text. Similarly, on hover out i should undo the changes to bring in the original state.
for on hover i was trying On Got Focus event of the button but its didn't work. What am i missing? Or if its completely incorrect please suggest how i can accomplish this.

Thank You.
 
Microsoft Access form controls do not have a MouseOver event, but they do have a MouseMove event.

One possible way may be - You need to create two images of the button and label.

Then use the MouseMove event to switch from one to the other.

Do a search for MouseMove - I'm sure this has cropped up before.

Col
 
Here's a tutorial that explains the ABCs of changing a control's formatting when the mouse moves over it, and returning the formatting to its default when the mouse moves off of the control.

http://bytes.com/forum/thread648549.html
 

Users who are viewing this thread

Back
Top Bottom