// form1_load, accessed when the form is loaded
 private void Form1_Load(object sender, EventArgs e)
 {
     //make a db object to pull the data from
     DBConnect test = new DBConnect();
     //output the data in the label
      this.label1.Text = test.Select();
 }
Exemple #2
0
        private void RefreshcbDelete()
        {
            List <String>[] lists = new List <string> [3];

            lists = dbc.Select();

            cbDelete.Items.Clear();
            for (int i = 0; i < lists[1].Count; i++)
            {
                cbDelete.Items.Add(lists[1][i]);
            }
            bDelete.Enabled = false;

            dataGridView1.DataSource = dbc.bindingSource1;
        }