Unanswered question.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Let me try asking it a different way... How can I get a text box or,
preferrably a Object to glow like a command button when the mouse is over it.


If glowing is not an option than activating a special effect might work.
 
You can use the OnMouseMove Property of the field, to change the BackColor of
the field to Yellow

Me.FieldName.BackColor = 65535

Create a border around this text box, with a border that you can't see, and
in the OnMouseMove Property of the border, write the code
Me.FieldName.BackColor = 16777215
 
Ofer,

Thanks. One problem. I'm trying to get it emulate a command button. Your
suggestion helps but the problem is, when the mouse is no longer over the
button, it does not change back to the original color.
 
Text boxes have a mouse move property just like command buttons. Say, for
example, you want the Font Weight to change to bold when you move the mouse
over it and go back to normal when you move away from it. To make it bold
when you move over it, use the control's mouse move event.
Me.cmdOK.FontBold = True
Then to put it back to normal, use the form's mouse move event.
Me.cmdOK.FontBold = False

You can do this with any property of the control, say you want to change the
back color or resize it, or whatever.
 
This is why I suggested puting a frame around the text box, and on the mouse
move event of the frame set it back to white, look at my first post.
Make the border bigger then text box
--
If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benifit from it.

Good luck
 
Back
Top