I have a menu with checkboxes (for example, Settings > Use HTTP/HTTPS/SOCKS5 - 3 different checkboxes) and I want to make it so that when one checkbox is selected others get unselected automatically.
My idea was to use some kind of loop to go through each element and unselect them except the selected one.
I tried like this:
foreach (ToolStripItem mi in settingsToolStripMenuItem)
{
// code to unselect here
}
But I can't figure it out.
Aucun commentaire:
Enregistrer un commentaire