TopMost = true, StartPosition = FormStartPosition.CenterParent
DialogResult res = new DialogResult(); res = MessageBox.Show(new Form() { TopMost = true, StartPosition = FormStartPosition.CenterParent }, "Choisissez le fichier GeoDB.", "Choix du fichier source", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question); if (res == DialogResult.Cancel || res == DialogResult.No) return; OpenFileDialog OFD = new OpenFileDialog(); OFD.Filter = "Fichier Source GeoDB (*.gdb) | *.gdb"; OFD.Title = "Choix d'un fichier source GeoDB"; if (OFD.ShowDialog(new Form() { TopMost = true, StartPosition = FormStartPosition.CenterParent }) == DialogResult.OK) { nomFichierGeoDB = OFD.FileName; GeoDBConString = GetGeoDBConString(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)