.net 打开文件
程序员文章站
2022-04-01 16:51:25
...
OpenFileDialog^ dlgOpenFile = gcnew OpenFileDialog (); String^ fileName; dlgOpenFile->InitialDirectory = "D:\\"; dlgOpenFile->Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"; dlgOpenFile->FilterIndex = 1; dlgOpenFile->RestoreDirectory = true ; dlgOpenFile->ShowDialog(); fileName = dlgOpenFile->FileName; TB_Path->Text = fileName;
上一篇: thinkphp中M()方法有什么用
下一篇: 实现Html单选按钮自定义样式的方法介绍