Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to stop flashing cursor in read only textbox?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00513866
Message ID:
00513872
Views:
14
This message has been marked as the solution to the initial question of the thread.
Hi!

In the GotFocus event put code:
if this.ReadOnly
SET CURSOR OFF
endif

In the LostFocus event put:
SET CURSOR ON

You also require an additional handling for page frames when textbox is in grid, because Lost Focus not fire, so cursor do not appear on the another just activated page.

HTH.

>I have a bunch of textboxes with names in them on a form. The user can click on a textbox with a name in it to see data about that name in the lower half of the form. I have the textbox enabled, but set as read only. But how can I stop the flashing cursor when they click on the textbox?
>
>I also change the DisabledBackColor to white when they click on the textbox and change it back to the default color when they leave the textbox and click a different textbox with a name in it.
>
>I imagine this is pretty simple to do, but I have never needed to do it and don't see a property that would do this other than Enabled, but I need to keep the textbox enabled so they can click on it.
>
>Thanks for the info.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform