private void textBox1_Click(object sender, EventArgs e) { using (KeyPad kp = new KeyPad()) { if (kp.ShowDialog() == System.Windows.Forms.DialogResult.OK) { this.txtLOTid.Text = kp.value; //T.Text = np.value; } } }
private void tbInput_Click(object sender, EventArgs e) { TextBox T = (TextBox)sender; using (KeyPad kp = new KeyPad()) { if (kp.ShowDialog() == System.Windows.Forms.DialogResult.OK) { T.Text = kp.value; } } }
private void txt_KP_Click(object sender, EventArgs e) { TextBox T = (TextBox)sender; using (KeyPad kp = new KeyPad()) { if (kp.ShowDialog() == System.Windows.Forms.DialogResult.OK) { //this.textBox5.Text = np.value; if (T.Name == "txt_server") { T.Text = "ftp://" + kp.value; } else { T.Text = kp.value; } } } }