How do you keep the window open?
-
The problem is, it's a violin.
private void runToolStripMenuItem_Click(object sender, EventArgs e) { var psi = new ProcessStartInfo { FileName = "ruby.exe", Arguments = __FileName, RedirectStandardOutput = true, RedirectStandardError = true, UseShellExecute = false };
var p = Process.Start(psi); textBox2.Text = p.StandardOutput.ReadToEnd() + p.StandardError.ReadToEnd(); }
The window of the violin appears and immediately disappears, even if the violin says "gets." What do we do? Thank you.
-
The problem is, you start a console application and it automatically closes the console.
I mean, I see two options:
And if you open the console and you start the violin, the window won't close. Because when she's done, she's just gonna go back to the open console, not close the window.
In the violin itself, I'm gonna fill out the ReadKey at the end of the violin. The result will be approximately the same.