Outputting information to a text box

  • Thread starter Thread starter Phil Kelly
  • Start date Start date
P

Phil Kelly

Hi!

We have an application that logs a lot of information on its operations to
text files, but we would also like it to log progress to the screen, in a
window/text box etc so progress can be seen at run time.

The standard text box does not allow this kind of flexibility, whilst teh
richTextBox control does seem to but I have been unsuccessful in getting it
to work (seems to operate in exactly the same mode as the normal text box
control)

Can anyone tell me what is the best way to achieve this goal?

Thank for your help!

Phil
 
Phil,

I think you may need to invoke the DoEvents method after setting the Text
property of the text box. This will probably allow the textbox to be
rendered. However, just be aware that depending on you application the
DoEvents may cause other problems.

-Sam Matzen
 
* "Phil Kelly said:
We have an application that logs a lot of information on its operations to
text files, but we would also like it to log progress to the screen, in a
window/text box etc so progress can be seen at run time.

The standard text box does not allow this kind of flexibility, whilst teh
richTextBox control does seem to but I have been unsuccessful in getting it
to work (seems to operate in exactly the same mode as the normal text box
control)

What doesn't work with the richtextbox as expected?
 
Back
Top