foreach (Gtk.RadioButton ctrl in table3) { if (ctrl != null && ctrl.Active) { numsorteio = Convert.ToInt32(ctrl.Label); } }
The routine in Visual Studio is like this: foreach (Control ctrl in panel1.Controls) { if (ctrl is RadioButton) { RadioButton radioB = (RadioButton)ctrl; if (radioB.Checked) { strCargos = radioB.Text; } } } In mono there are no Controls. I've done a lot of research and I still don't have the solution. If you have the solution, can you pass me? Thanks.
foreach (Control ctrl in panel1.Controls)
sender
EventArgs
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)