WPF How to execute a * .exe with a button in a main window, whose path is in a TextBox of a second window, please help me.

  • Thread starter Thread starter JackPelon
  • Start date Start date
J

JackPelon

Guest
Hi, I'm still a newbie. I have my project, in which I have 2 windows, a Main Window (Launcher.xaml) and another Second Window (Configuration.xaml). In the Main Window I have 2 buttons; a button that executes an * .exe (start game), whose path or address is in a TextBox in the second window. And the second Button calls the second window.

In the second window I have a TextBox and a Button that when clicked, sends me a search dialog for the * .exe file (game.exe) and when choosing that program to execute, it writes the address or path in the TextBox something like this ; "D: \ folder \ game.exe"

***** Well my question is how I can make the button of the main window (Start Game) execute the game whose address or path is in the TextBox of the second window, I would be very grateful if you could help me with it, please.*****

Continue reading...
 
Back
Top