Click to See Complete Forum and Search --> : RichTextBox
Al Mason
June 18th, 2001, 12:52 PM
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
ant
June 18th, 2001, 03:00 PM
how many lines are there?
--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: cgeorge@thevortex.com
for the address
Al Mason
June 18th, 2001, 03:35 PM
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.
Al Mason
June 18th, 2001, 05:20 PM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.