first of all why are u using a textbox for status reports. instead use a Flexgrid where you can show the datetime of the incident along with a lot of details of the user using the system (for e..g login name if it is a multiuser system).
I am saying this because if you go on appending the incidents in a textbox then aftersometime when there would be a lot of incidents the system shall take time to load the form & fill the control. I have experienced it. If u want to try it add a multiline textbox on a new project & during the form load event try assigning 5000 chars to that textbox & see howmuch time it takes to insert values.
Main Topics
Browse All Topics





by: GunsenPosted on 2002-08-05 at 05:04:51ID: 7200671
Because this is a Text string, you would have to parse the text from top, then delete one line or more. This may not be so effectiv.
Would it be wrong using a Listbox instead ?
You could simply add one line at a time (unsorted).
And delete topmost lines (List1.RemoveItem (0))
If you want a cut&paste versjon of the log using listbox, you would have to add "save to file or clipboard" functionality.