cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Simple problem...
Simple problem...
Jan 14, 2012 at 11:38pm UTC
Laveer
(51)
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";
}
}
Jan 14, 2012 at 11:54pm UTC
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
Jan 14, 2012 at 11:55pm UTC
Topic archived. No new replies allowed.