开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜