Ejemplo n.º 1
0
 private void openDatabaseToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (txtPath.Text == "")
     {
         MessageBox.Show("You have to chose the database you want to open by clicking on browse...", "Missing step!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         path = txtPath.Text;
         OpenDB f1 = new OpenDB();
         f1.ShowDialog();
     }
 }
Ejemplo n.º 2
0
        private void BtnCreateDB_Click(object sender, EventArgs e)
        {
            SaveFileDlg.Filter = "FichierAccess|*.mdb|Tous fichiers|*.*";
            SaveFileDlg.ShowDialog();
            string Creationpath = SaveFileDlg.FileName;

            CreateDB(Creationpath);
            MessageBox.Show("The database has been created !", "Successful creation", MessageBoxButtons.OK, MessageBoxIcon.Information);
            getPath = Creationpath;
            OpenDB f1 = new OpenDB();

            f1.ShowDialog();
        }