Results 1 to 3 of 3

Thread: RichTextBox Cursor Problem

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    45

    Question RichTextBox Cursor Problem

    I have a RichTextBox Control on my form and he stand-alone.
    I’m presenting text in it and the property Locked=True, The problem is that I can’t hide the cursor.
    If there is another control on the form and I pass the focus to him it’s working but unfortunately I can’t put another control.
    Is there any way to hide the cursor from the RichTextBox?

    Thanx
    VBmaster

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. Private Declare Function HideCaret Lib "User32" (ByVal hWnd As Long) As Long
    2.  
    3. Private Sub RichTextBox1_GotFocus()
    4. HideCaret RichTextBox1.hWnd
    5. End Sub

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    45

    Smile Thanx

    Thanx
    VBmaster

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