예제 #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            FormC1_2 frm = new FormC1_2(this);

            txtc1.Focus();
            frm.ShowDialog(this);
        }
예제 #2
0
        public FormC1_Pack(FormC1_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);
        }