Using the OpenFileDialouge selection in a parameter
I am trying to use an OpenFileDialouge control to select a folder, so that it can select a file and output it into my code below:
private void button18_Click(object sender, EventArgs e)
{
Process.Start("test.exe", &l开发者_如何学JAVAt;openfiledialouge-output-here> );
}
So would contain the selected file
Use FolderBrowserDialog to select folder, not OpenFileDialog.
Update: This is the MSDN docs, better imo.
http://msdn.microsoft.com/en-us/library/system.windows.forms.openfiledialog.aspx
精彩评论