Event log box

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi.

I'm new to application design. I'm writing an app that's just going to have
few buttons which perform a task when clicked. I want each task to be able
to write out what it's doing to a textual on screen log.

A perfect example of this the old style modem connect box. When you click
Connect, you see various messages scrolling in the box below saying
"Dialling...", "Verifying username and password" etc. What's the best way
to do this in .NET? I'm using C# if that makes any difference.

I'd like to be able to control the colour of the text as well. Any ideas?

Mike
 
hi Mike
just use a label control and change its text, text font , and text size
according to the status of your program . if you want to save that to
application logs you need to use the System.Diagnostic.Debug class and
associate a listner with that.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 
Mohamoss said:
hi Mike
just use a label control and change its text, text font , and text size
according to the status of your program . if you want to save that to
application logs you need to use the System.Diagnostic.Debug class and
associate a listner with that.
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Maybe I didn't make it clear... The user needs to be able to scroll down to
see all previous messages and copy them to the clipboard. I basically want
a scrolling text box, so that I can append text to the top line and what's
already there scrolls down. How do I do this?

Mike
 
hi Mike
Maybe I didn't make it clear... The user needs to be able to scroll down to
see all previous messages and copy them to the clipboard. I basically want
a scrolling text box, so that I can append text to the top line and what's
already there scrolls down. How do I do this?

It's OK, I found that a rich text box does exactly what I need.

Mike
 
As will a TextBox set to ReadOnly and MultiLine.

It cannot be multi-colored though...?

Mike
 
Back
Top