2011-03-05 53 views
0

如何從另一窗口中的窗體窗體上的「按鈕」打開控制檯應用程序。例子會很棒。你如何打開控制檯應用程序?

說這是代碼:

namespace something 
{ 
    class form1 : form 
    { 
    private void buttonPlay_Click(object sender, EventArgs e) 
    { 
    //I want whatever it would be to be put right here for this is the button that would be pressed 
    } 
    } 
    class ConsoleApplication 
    { 
    public static void Method() 
    { 
     console.writeLine("hello World!"); 
    } 
    } 
} 

回答

2
Process.Start(@"console_app.exe"); 
相關問題