OpenFileDialog dlgDatabase = new OpenFileDialog();
dlgDatabase.Filter = "Access Database|*.mdb";
if (CQApplicationData.filename != string.Empty)
dlgDatabase.FileName = CQApplicationData.filename;
if (dlgDatabase.ShowDialog() == DialogResult.OK)
{
//this.Path = dlgDatabase.FileName;
CQApplicationData.filename = dlgDatabase.FileName;
dlgDatabase.RestoreDirectory = true;
}
No comments:
Post a Comment