Results 1 to 4 of 4

Thread: change caret in richtextbox

Hybrid View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2010
    Location
    Spain
    Posts
    92

    Lightbulb 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.

  2. #2
    Junior Member
    Join Date
    Dec 2008
    Posts
    29

    Re: change caret in richtextbox

    yes, Look up the CreateCaret function in the VS online help
    more tech mumbo jumbo @ http://www.noordam.IT

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jun 2010
    Location
    Spain
    Posts
    92

    Re: change caret in richtextbox

    Quote Originally Posted by dePoPo View Post
    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.

  4. #4
    Junior Member
    Join Date
    Dec 2008
    Posts
    29

    Re: change caret in richtextbox

    Quote Originally Posted by Guerrero View Post
    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
    more tech mumbo jumbo @ http://www.noordam.IT

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
  •  



Click Here to Expand Forum to Full Width