I am programming for a practice a set of questions in windows forms, which I have a textbox with the question and 3 buttons with the options.
The question is how could you save the value of the click of each button on a variable (any) since the buttons would change value through the passing of the questions. so use it in an if to compare directly and show if it corresponds to the correct answer or not.
For example:
//suponiendo que la sentencia fuera corercta
(boton1 == clikeado){
MessageBox.Show("Correcto");
}
else
{
//resto de la botones
MessageBox.Show("Incorrecto");
}
The truth is that I do not know how to embody it, thank you.