Mouse Cursor Location

D

Daryl

Does anyone have any idea how to find out where the Mouse Cursor is inside of
an Access Control on a Form. I need to be able to input Data at specific
locations in a memo field.
 
T

Tim Ferguson

Does anyone have any idea how to find out where the Mouse Cursor is
inside of an Access Control on a Form.

Look up help for SelStart and SelLength properties.

HTH


Tim F
 
D

Dirk Goldgar

Daryl said:
Does anyone have any idea how to find out where the Mouse Cursor is
inside of an Access Control on a Form. I need to be able to input
Data at specific locations in a memo field.

The mouse's X and Y coordinates are reported to the control's MouseDown,
MouseUp, and MouseMove event procedures. If you just want to know where
the text insertion point is, you can interrogate the control's SelStart
property while the control has the focus.
 

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