selectionner_un_fichier_openfiledialog
OpenFileDialog
- |OpenFileDialog
OpenFileDialog openFileDialogModele = new OpenFileDialog(); openFileDialogModele.Filter = "Text files (*.txt)|*.txt|All files (*.*)|*.*"; openFileDialogModele.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); DialogResult result = openFileDialogModele.ShowDialog(); if (result == DialogResult.OK) { textBoxModele.Text = openFileDialogModele.FileName; }
selectionner_un_fichier_openfiledialog.txt · Dernière modification : 2017/12/06 16:13 de 127.0.0.1