I have form 1 with 4 buttons when I click a button it opens a new form. Each button opens the same form but I want the corresponding button to enter specific values into two different text boxes on form 2.
Form 1 Button A; Form2 textbox1= 400 textbox2 =0.4
Form 1 Button B; Form2 textbox1= 350 textbox2 =0.9
Form 1 Button C; Form2 textbox1= 700 textbox2 =0.6
Form 1 Button D; Form2 textbox1= USER DEFINED
textbox2 = USER DEFINED
How would I go about this
//This is the current text
// Form1:
private void ButtonA_Click(object sender, EventArgs e)
{
Form2 numb = new form2();
numb.FormClosed += new FormClosedEventHandler(numb_FormClosed);
this.Hide();
CalcForm.Show();
}