Console.Clear()

  • Thread starter Thread starter Just Me
  • Start date Start date
In a dotNet 2.0 Windows Forms application, you need to explicitly allocate
the console before any of the Console class methods will work. Otherwise,
they throw exceptions.

If you'd like, I'll post my Console helper class, which has an option to
hide the form that calls it.

Mike.
 
OK. I conceed that accuracy is important.

Thanks 4 ur help.

PS: I wrote an add-in that does what I want programatically.
 
Im interested to see what u did,

Thanks...




Michael D. Ober said:
In a dotNet 2.0 Windows Forms application, you need to explicitly allocate
the console before any of the Console class methods will work. Otherwise,
they throw exceptions.

If you'd like, I'll post my Console helper class, which has an option to
hide the form that calls it.

Mike.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top