Well I have this code to change the UI Elements in C#, that I found here in StackOverflow, but I couldn't find one equivalent in C++, cause I want to change it in BackgroundWorker
label4.Invoke(new Action(() =>
{
label4.Text = "Hello";
}
));
this up here is a c# working example.
I tried something by using this example to make one example to add items into a CheckList Box, This is what I have, but it doesn't work in C++, I'm obviously using the wrong way to change it.
clb_contas->Invoke(new Action(() => {
clb_contas->Items->Add(System::String("testeCheckBox"),item), CheckState::Checked);
}
));
What would I have to change in this code up here to make it work in C++ ?
Thanks in advance.