开发者

Using the OpenFileDialouge selection in a parameter

开发者 https://www.devze.com 2023-03-13 23:17 出处:网络
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:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消