OpenFileDialog

  OpenFileDialog dialog = new OpenFileDialog();
            dialog.Filter = "All Files (*.*)|*.*";
            dialog.Multiselect = false;
            if (dialog.ShowDialog() == true)
            {
                txtKeyPath.Text = dialog.FileName;
            }

 

posted @ 2014-01-23 19:05  quietwalk  阅读(227)  评论(0编辑  收藏  举报