OpenFileDialog dlg = new OpenFileDialog(); dlg.CheckPathExists = true; dlg.CheckFileExists = true; if(dlg.ShowDialog()==DialogResult.OK) { // code si l'utilisateur a bien sélectionner un fichier textBoxCool.Text = dlg.FileName; }
dlg.ShowDialog();
textBoxCool.Text = dlg.FileName;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question