public CodeHelperForm(제품번호구분Control 제품번호구분Control) { InitializeComponent(); this.제품번호구분Control = 제품번호구분Control; this.panel.Controls.Add(제품번호구분Control); 제품번호구분Control.Dock = DockStyle.Fill; this.Resizable = false; ActiveControl = 제품번호구분Control.dgv제품번호List; 제품번호구분Control.RecieveLoginForm(this); this.SetFormLocation(); }
private void TextBox1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { e.Handled = true; Button1_Click(null, null); } if (e.KeyData == Keys.F2) { 제품번호구분control = new 제품번호구분Control(); //제품단위.SendCode = textBox1.Text; 제품번호구분control.txbSearch.Text = textBox1.Text; CodeHelperForm menuForm = new CodeHelperForm(제품번호구분control); menuForm.ShowDialog(); textBox1.Text = 제품단위.Code; } }