Filter = "txt ファイル (*.txt)|*.txt|A ..."/> Filter = "txt ファイル (*.txt)|*.txt|A ...">
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;