private void BtnCodeHelper_Click(object sender, EventArgs e) { 관할세무서구분Control = new 관할세무서구분Control(); CodeHelperForm menuForm = new CodeHelperForm(관할세무서구분Control); menuForm.ShowDialog(); txb관할세무서코드.Text = 관할세무서단위.CompetentTaxOfficeCode; txb관할세무서명.Text = 관할세무서단위.CompetentTaxOfficeName; }
private void Txb관할세무서코드_KeyDown(object sender, KeyEventArgs e) { if (e.KeyData == Keys.F2) { 관할세무서구분Control = new 관할세무서구분Control(); CodeHelperForm menuForm = new CodeHelperForm(관할세무서구분Control); menuForm.ShowDialog(); txb관할세무서코드.Text = 관할세무서단위.CompetentTaxOfficeCode; txb관할세무서명.Text = 관할세무서단위.CompetentTaxOfficeName; } }
public CodeHelperForm(관할세무서구분Control 관할세무서구분Control) { InitializeComponent(); this.관할세무서구분Control = 관할세무서구분Control; this.ClientSize = new System.Drawing.Size(관할세무서구분Control.Width + 30, 관할세무서구분Control.Height); this.panel.Controls.Add(관할세무서구분Control); 관할세무서구분Control.Dock = DockStyle.Fill; this.Size = new Size(335, 400); this.Resizable = false; ActiveControl = 관할세무서구분Control.dgv관할세무서; 관할세무서구분Control.RecieveLoginForm(this); this.SetFormLocation(); }