Click here to Skip to main content
15,885,309 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am creating the original textbox control by overriding some methods and inheriting from control class and while overriding onmouseenter method, I want to create a blinking cursor. How can I do it?
Posted
Updated 15-Aug-11 23:24pm
v2

You actually want a blinking caret which is the text marker; the cursor is the icon that is controlled by the mouse. Take a look at this link[^] or try a search here on CodeProject for any articles on the subject.
 
Share this answer
 
Comments
Prerak Patel 16-Aug-11 5:05am    
You beat me to it. You got a good example link. My 5
Richard MacCutchan 16-Aug-11 5:09am    
Thanks, but I just used Bing to find it.
Sergey Alexandrovich Kryukov 17-Aug-11 1:52am    
Sure, my 5. I wonder who needs a blinking caret? For a record: before mice existed, a caret was named "cursor".
--SA
Richard MacCutchan 17-Aug-11 4:27am    
And it still blinked.
Try to use API functions - CreateCaret[^], ShowCaret[^], HideCaret[^].
I'll let you know if I find something else with native methods.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Aug-11 1:52am    
Yes, a 5.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900