Wpf OpenFileDialog

 
 
 
            Microsoft.Win32.OpenFileDialog openFileDialog1 = new Microsoft.Win32.OpenFileDialog();
            openFileDialog1.Filter = "(*.cup)|*.cup";
            if (openFileDialog1.ShowDialog() == true)
            {
                    MessageBox.Show(openFileDialog1.FileName);
            }





posted @ 2014-06-06 12:49  XE2011  阅读(884)  评论(0编辑  收藏  举报