Not sure how bullet proof this is, but it works for your sample. Probably best if you also include a flag to say whether you are inside or outside a tag. Then you can report an error (if desirable)...
Can you post the code here, showing how you read the text from the file. Then we will be able to see what internal structure you have used and better answer your question.
In general, all drawing code should be placed in the forms Paint event handler. This is automatically called when part of your application needs to be drawn.
I tend to use 'this' when referring to member functions that I did not write, i.e. those in a class that mine is derived from. Having said that, I'm always arguing with myself over this standard. ...
If you write each block of data to a different temp file each time, then the whole of its contents is the string that was written. Then append the whole of that text to the end of another file and...
I think you need to post a sample of your code. Saying that "you tried it the same way as you did in the other form", is meaningless, when we don't know what you did in the other form.
Can you explain the process a little more... You have 10 threads 'updating'. Is this adding, removing, updating? Is 1 removing and 9 adding or 9 removing and 1 adding etc...?
Your server program could write each incoming block of text to a new file. Eg: 1.txt, 2.txt, 3.txt (or even get the system to generate a temp file name for you, so you don't have to keep a counter)....
You can use the:
// Create a Graphics object for the Control.
Graphics g = pictureBox.CreateGraphics(); to get the Graphics object for the PictureBox control. Then use the members of the...