im entering data into textboxes. If the checkbox is checked i wanna pass the data in the textbox and the checkbox.text to form2. Here i need to show what was entered as a review stage and submit back to form1 whether or not to submit the data or edit it again.
Form1 Code
namespace bankaccount
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void depositSubmit_Click(object sender, EventArgs e)
{
Form2 formreview = new Form2(dateTimePicker1.Text, check_checkBox1.Text, check_deposit1.Text);
formreview.Show();
}
}
}
Form2 Code
namespace
bankaccount
{
public partial class Form2 : Form
{
public Form2(string strTextBox, string check1, string check2)
{
InitializeComponent();
label1.Text = strTextBox;
label2.Text = check1;
label3.Text = check2;
}
}
}