Simple problem...

For some odd reason this isn't working as I wanted it to... The code makes it self explanatory.


void Form1::label3_Click(System::Object^ sender, System::EventArgs^ e) {
if(checkBox2->Checked)
{
this->label3->BackColor = System::Drawing::Color::Lime;
this->label3->Text = "Test";
}
}
closed account (o1vk4iN6)
This is more of a .Net issue than a C++ one, seeing the syntax is identical for all languages that use it.

You may need to call a function to cause label3 to update it's gui. As well make sure label3_click is added to label3's event listener.
Last edited on
Topic archived. No new replies allowed.