.net 打开文件
程序员文章站
2022-06-08 10:00:44
...
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;
上一篇: Ruby的变量声明和模块加载的几种情况
下一篇: 图标