public DatingForm() { Splash splash = new Splash(); splash.Show(); splash.Refresh(); // Change To Current Directory for .accdb file fishtank = new Clients(@"C:\Users\Kevin\Dropbox\Visual Studio 2012\Projects\WindowsFormsApplication1\WindowsFormsApplication1\DateABase.accdb"); InitializeComponent(); ClientTable.Columns.Clear(); DataColumn name = new DataColumn("Name"); DataColumn sex = new DataColumn("Sex"); DataColumn age = new DataColumn("Age"); DataColumn hobby = new DataColumn("Hobby"); DataColumn other = new DataColumn("Other"); DataColumn color = new DataColumn("Favorite Color"); DataColumn photo = new DataColumn("Photo"); DataColumn clientID = new DataColumn("Client ID"); ClientTable.Columns.Add(name); ClientTable.Columns.Add(sex); ClientTable.Columns.Add(age); ClientTable.Columns.Add(hobby); ClientTable.Columns.Add(other); ClientTable.Columns.Add(color); ClientTable.Columns.Add(photo); ClientTable.Columns.Add(clientID); System.Threading.Thread.Sleep(2000); loadClientGrid(); splash.Close(); }
private void button4_Click(object sender, EventArgs e) { Clients c = new Clients(con); c.ShowDialog(); UpdateData(); }