Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            FormC2_2 frm = new FormC2_2(this);

            txtc1.Focus();
            frm.ShowDialog(this);
        }
Ejemplo n.º 2
0
        public FormC2_Pack(FormC2_2 frmparent, string title, string sql)
        {
            InitializeComponent();
            sqlquery  = sql;
            this.Text = title;
            frm       = frmparent;

            this.dgv.SetDataGridViewTheme2(true, false, "No", false, false, 32, 25, true, false, false);
            this.dgv.AllowUserToOrderColumns  = false;
            this.dgv.AllowUserToResizeColumns = false;
            this.dgv.AllowUserToResizeRows    = false;

            ShowDataInDataGridView(this.dgv, sqlquery);
        }