public Form1() { InitializeComponent(); // button2_Click(null, null); DirectoryInfo dir = new DirectoryInfo(Application.StartupPath + @"\Images"); if (!dir.Exists) { dir.Create(); } database = FRDBFn.Instance; }