Hello all, I'm new to C# so bear with me

My little project is a Windows Application. It's a 'front-end' to run the console program mame.exe (Arcade emulation executable). I have a form with a openFileDialog1, browse button, run button and a textbox to show the name of the selected file. The user clicks browse to select a file, then the name of the file is shown in the textbox. When you click run, the program will run mame.exe along with the selected filename as an argument, e.g. 'mame.exe pacman'.

What I have so far: I have openFileDialog1.ShowDialog(); on the btnBrowse_Click event. That shows the open dialog.

What I need: I need to actually select the file and put the name of the file into txtFileName so the user can see what they have selected. Then finally I need to be able to run mame.exe with the selected filename as a argument when the user clicks btnRun.

Any help will be much appreciated.

Thanks.

Darren.