Help with cursor on textbox

gojets1721

Registered User.
Local time
, 17:04
Joined
Jun 11, 2019
Messages
430
I have a textbox where I don't want the cursor to change to insertion cursor; I want it to remain the pointer when hovering over the textbox.

I placed 'screen.MousePointer = 1' in the Move Mouse event of the textbox, which worked.

However, after you hover over that textbox, the pointer cursor is used for everything else from there on out. I only want the insertion cursor to not appear only when hovering over that textbox. Any suggestions on how to accomplish that?
 
easiest way is in the section and/or surrounding controls mouseover event return the pointer to whatever it was before
 
Do you need to edit the contents of the text box?
If you set the textbox property Enabled=No & Locked=Yes the cursor doesn't change.
You don't need to use code.
 
Do you need to edit the contents of the text box?
If you set the textbox property Enabled=No & Locked=Yes the cursor doesn't change.
You don't need to use code.
No, I don't need to edit the contents, but putting Enabled to 'no' then doesn't allow you to double click on the textbox to trigger an event
 
easiest way is in the section and/or surrounding controls mouseover event return the pointer to whatever it was before
@CJ_London gotcha. Is there a way to have code to 'reset' it so to speak? Meaning revert back to default where it'll be a pointer or insertion as it normally would be?
 
but putting Enabled to 'no' then doesn't allow you to double click on the textbox to trigger an event
You could put a transparent button over the inactive textbox and use its events.
 
if you want to emulate mouseover then take a look at this thread I did a while back


note for continuous forms you need to use a completely different method if you only want to highlight a specific control on a specific row
 

Users who are viewing this thread

Back
Top Bottom