Form2::"replace with name of label for question"->Text = "Question 1: NaCl";
{
////////////////////Question 1////////////////////
if (Form2::Answer->Text == "sodium")
{
MessageBox::Show("Correct","Correct");
Form2::grade->Text = "Grade: 10 points";
Form2::Stuff->Text = "Question 2";
}
else
{
////////////////////Try 1////////////////////
MessageBox::Show("Incorrect","Incorrect");
Form2::Stuff->Text = "Question 1: NaCl";
if (Form2::Answer->Text == "sodium")
{
MessageBox::Show("Correct","Correct");
Form2::grade->Text = "Grade: 10 points";
Form2::Stuff->Text = "Question 2";
}
else
{
////////////////////Try 2////////////////////
MessageBox::Show("Incorrect","Incorrect");
Form2::Stuff->Text = "Question 1: NaCl";
if (Form2::Answer->Text == "sodium")
{
MessageBox::Show("Correct","Correct");
Form2::grade->Text = "Grade: 10 points";
Form2::Stuff->Text = "Question 2";
}
else
{
Form2::Stuff->Text = "Question 1: NaCl";
}
}
}
}