I have put a radiobutton to a Form that I have named radioButton1.
As I know a radiobutton can have 2 states, true and false.
What I wonder here is for this code example that will show a messagebox if radioButton1 is pressed.
However this does not compile.
I tried to find these members to radioButton1 but I cant find these members to the radioButton1 class. I do find hundreds of others but not these 2.Code:if (radioButton1 = true) { MessageBox::Show("radioButton1is pressed"); }
Code:radioButton1->GetState() radioButton1->IsChecked()