WikiElectronique

Wiki sur l'électronique et l'informatique

Outils pour utilisateurs

Outils du site


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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki