My apologies. I assumed that the Begin/EndUpdate methods applied to the rich text control as well. I would have thought these were methods that would be useful if they applied to all controls. If they don't in my version (2010) then they won't in yours. What, specifically, are you trying to do? Perhaps with more information I can suggest an alternative.
I am making a kind of program in which you can enter the text in the rich text box by buttons like a virtual keyboard. Then I use find() method and change some text to just one letter. I use this code. For example if I want to change "you" to "u" then I have:
rtfDocument.SelectionStart = rtfDocument.Find("You")
rtfDocument.SelectionLength = Len("You")
If rtfDocument.SelectedText = "You" Then
rtfDocument.SelectedText = "u"
But when the text gets big, it starts to blink when it processes lots of such codes each time I press a button from the virtual keyboard.
Hope you have understood.
Thanks in advance :)
I was thinking that you could copy the entire RTF text to a local string, do all of the changes to that string, then copy it back to the RTF control but it occurred to me that you would lose all of the formatting. Then I thought you might create a hidden RTF control and do all the editing changes there before copying it back to the visible control. That might eliminate all but one (the final) screen update.
OK, so HostGator for some reason no longer allows gcc/g++ access unless you have a Designated Server account, which is a lot of money to spend just to compile my "Hello World" program. Thus I figured I'd compile at home, then upload. Program is your regular old bare-bones Hello World ...
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...