Ejemplo n.º 1
0
        private void button6_Click(object sender, EventArgs e)
        {
            fatorh      frm          = new fatorh();
            f_cust      fc           = new f_cust();
            f_mord      fm           = new f_mord();
            dion        d            = new dion();
            ColorDialog colorDialog1 = new ColorDialog();

            if (colorDialog1.ShowDialog() == DialogResult.OK)
            {
                this.BackColor = colorDialog1.Color;
            }
            frm.BackColor = colorDialog1.Color;
            fc.BackColor  = colorDialog1.Color;
            fm.BackColor  = colorDialog1.Color;
            d.BackColor   = colorDialog1.Color;
        }
Ejemplo n.º 2
0
        private void search_Load(object sender, EventArgs e)
        {
            dion f = new dion();

            con.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Application.StartupPath + "\\db1.accdb";
            con_open();
            da = new OleDbDataAdapter("select * from cust", con);
            da.Fill(ds, "cus");
            txt_search.DataSource    = ds.Tables["cus"];
            txt_search.DisplayMember = "c_name";
            txt_search.ValueMember   = "c_id";
            da = new OleDbDataAdapter("select c_id,f_ba from fatorh", con);
            da.Fill(ds, "fat");
            bs.DataMember = "fat";
            bs.DataSource = ds.Tables["fat"];
            txt_search.DataBindings.Add("SelectedValue", bs, "c_id");
            dataGridView1.DataSource = bs;
        }
Ejemplo n.º 3
0
        private void button3_Click(object sender, EventArgs e)
        {
            dion frm = new dion();

            frm.Show();
        }