CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2003
    Posts
    4

    Removing the keyboard cursor in the richtext box

    Hi

    It's easy to remove the mouse cursor. But does anyone know how do you remove the keyboard cursor in the richtextbox?

    MK

  2. #2
    Join Date
    Feb 2003
    Location
    Chennai
    Posts
    103
    you can use HideCaret() function of CRichEditCtrl class to hide the caret in the rich edit control
    pops

  3. #3
    Join Date
    Mar 2003
    Posts
    4
    Any C# functions instead of C++?

  4. #4
    Join Date
    Jul 2002
    Location
    .NET 2.0/.NET 3.0/.NET 3.5 VS2005/VS2008
    Posts
    284
    Set the richtextbox to read-only.
    WM.

    What about weapons of mass construction?

  5. #5
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890

    Lightbulb Conclusion

    by setting readonly won't help.

    AFAIK, there isn't a direct method for hiding the cursor in the richedit text box.
    you can use the API for hidecaret with use of C++ dlls.

    -Paresh
    - Software Architect

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

Featured