CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: RichTextBox

  1. #1
    Join Date
    Nov 1999
    Posts
    70

    RichTextBox

    When I enter text into the last line of a RichTextBox the last line of text flickers with each letter entry. An entry on any line above the bottom line will work fine. Any suggestions on how to stop the flickering on the last line? SP4 is installed on my VB6 program.
    Thanks,
    Al


  2. #2
    Join Date
    May 2001
    Posts
    155

    Re: RichTextBox

    how many lines are there?

    --Ant
    --------------------------------------------------
    check out my newest freeware
    E-mail me at: [email protected]
    for the address

  3. #3
    Join Date
    Nov 1999
    Posts
    70

    Re: RichTextBox

    The problem occurs on the last line regarless of the number of lines. If there was just one line then the text will flicker on that one line when typing text into it. A work around is to open the RTB with RTB.Text = "" & vbCrLf, RTB.SelStart = 0, but I would rather fix whatever the problem is or somehow make the last line unaccessible to the user. Thanks for responding.


  4. #4
    Join Date
    Nov 1999
    Posts
    70

    Re: RichTextBox

    The problem I am experiencing appears to be associated with some code I placed into my application for getting the RTB to set up to the printer (WYSIWYG_RTF). I pulled it off the Internet. If I disable the following line of code the problem goes away:

    ' Tell the RTF to base it's display off of the printer
    ' at the desired line width
    r = SendMessage(RTF.hWnd, EM_SETTARGETDEVICE, PrinterhDC, _
    ByVal PrintableWidth)

    Any Suggestions?
    Thanks,
    Al


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