I'm trying to use a rich text box for logging, I wrote a small app to automate recovering files from our snapshot backups. In particular, we're using it to repair the over 7000 .jpg files that the LoveLetter worm destoryed (ONE damn computer out of 5000 was missed in the updates)
So, there are at least four lines of logged text for each file. Using the following code:
txtLog.txt = txtLog.Text & vbCrLf & strTextToLog
So that copies the entire contents of the box, lays it down and then adds my line. Problem is, once there are several 10s of thousands of lines, it seems to get slow...
Is there not an AddLine function or something? Is there a better control to be using?
So, there are at least four lines of logged text for each file. Using the following code:
txtLog.txt = txtLog.Text & vbCrLf & strTextToLog
So that copies the entire contents of the box, lays it down and then adds my line. Problem is, once there are several 10s of thousands of lines, it seems to get slow...
Is there not an AddLine function or something? Is there a better control to be using?