MouseMove

M

Martin

Dear,
I am trying to program the mousepointer so that when it reaches a textbox of
form, the textbox will change font color to red, and when the mouse leaves
the textbox, it will resume to orginal color, black. Everything seems simple
and working when I put the Me.<textboxname>.forecolor=255 into the MouseMove
event of the textbox, and the Me.<textboxname>.forecolor=0 into the MouseMove
event of the form-Detail section. The form itself is a subform of the
mainform. Now, my problem is that the subform is in a ContinousForms mode
under the property of DefaultView. When it pulls records out of the
databases, it may have a list of records. Then, when I move the mousepoint
to the programmed textbox with the MouseMove event, the entire list of
texboxes under the same column turns 255 which is red.
Do you have any suggestions on this, so that only the record of the textbox
will change color?
Thank you!
Martin
 
D

Dirk Goldgar

Martin said:
Dear,
I am trying to program the mousepointer so that when it reaches a
textbox of form, the textbox will change font color to red, and when
the mouse leaves the textbox, it will resume to orginal color, black.
Everything seems simple and working when I put the
Me.<textboxname>.forecolor=255 into the MouseMove event of the
textbox, and the Me.<textboxname>.forecolor=0 into the MouseMove
event of the form-Detail section. The form itself is a subform of
the mainform. Now, my problem is that the subform is in a
ContinousForms mode under the property of DefaultView. When it pulls
records out of the databases, it may have a list of records. Then,
when I move the mousepoint to the programmed textbox with the
MouseMove event, the entire list of texboxes under the same column
turns 255 which is red.
Do you have any suggestions on this, so that only the record of the
textbox will change color?
Thank you!
Martin

The problem, as you may know, is that there is only one instance of the
control on the continuous form; it's just drawn multiple times. I
expect you can adapt something from Stephen Lebans' sample database at
the following URL to meet your needs:

http://www.lebans.com/conditionalformatting.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top