I am making a WPF application and I want to release a beta version of the application, for that I am adding a Button
named "debug" Which will essentially show/hide the console window.
I am writing appropriate message on the console after each event occurs so This will help users to report back the problem that they are having by looking at the messages on the console .
Sorry for the background story (if it's not helpful). I essentially need to know how to show/hide console windows dynamically in c# .
See Question&Answers more detail:os