ControlTip text based on data in control

M

Matthew Hanley

I have a simple text box that might not always be big enough to display all
of it's data. What I'd like to do is use the ControlTip text to display all
the data in the text box. This isn't hard to do by using the Mouse move
event to set the ControlTip text to the desired value, but there's a catch.
I'm viewing my data in a continuous form so the ContolTip text is set to the
value of my control in the current record and not the one the cursor is over.
Is there anyway to get data out of the "actual" contorol my mouse is over?
Even if I have to set the current record to the record the mouse is over is
alright.
 
D

Dirk Goldgar

Matthew Hanley said:
I have a simple text box that might not always be big enough to
display all of it's data. What I'd like to do is use the ControlTip
text to display all the data in the text box. This isn't hard to do
by using the Mouse move event to set the ControlTip text to the
desired value, but there's a catch. I'm viewing my data in a
continuous form so the ContolTip text is set to the value of my
control in the current record and not the one the cursor is over. Is
there anyway to get data out of the "actual" contorol my mouse is
over? Even if I have to set the current record to the record the
mouse is over is alright.

I just experimented, and was able to adapt Stephen Lebans' sample
project "ContinousFormsCurrentRow", downloaded from

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

to do this. He may well have a project already built to do this
specifically, but I didn't see it.
 
M

Matthew Hanley

Thanks for response. I've only skimmed through the code but it looks like I
can easily get it to do what I want it to do. Thanks again. You've been
very helpful.
 

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