-
Aug 21st, 2010, 01:25 PM
#1
Thread Starter
Lively Member
change caret in richtextbox
there is any way to change the caret?
(no the Cursor icon but the vertical little bar at the typing position)
the caret is really very tiny and I like to have option to change it to an yellow block, an red blinking underline or so.
-
Aug 21st, 2010, 03:53 PM
#2
Junior Member
Re: change caret in richtextbox
yes, Look up the CreateCaret function in the VS online help
-
Aug 22nd, 2010, 04:49 AM
#3
Thread Starter
Lively Member
Re: change caret in richtextbox
Originally Posted by dePoPo
yes, Look up the CreateCaret function in the VS online help
Thanks.
I've found this, but it is the old user32.dll api, I would prefer some really ,NET only, and at least some examples.
-
Aug 22nd, 2010, 07:21 AM
#4
Junior Member
Re: change caret in richtextbox
Originally Posted by Guerrero
Thanks.
I've found this, but it is the old user32.dll api, I would prefer some really ,NET only, and at least some examples.
never say never - but i dont think the framework is handling the caret at any point, this is so much a system function that it realy wouldnt make much sense.
You'll have to get the handle to the app or window, and set the caret through the api i'm afraid.
this post about reading pixels from a random app's window should point you in the right direction about getting those handles and decalring the api call the .net way
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|