-
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
-
Re: RichTextBox
how many lines are there?
--Ant
--------------------------------------------------
check out my newest freeware
E-mail me at: [email protected]
for the address
-
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.
-
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