0
Oops! Guys, I wanted to select only one item in the middle of two listboxes, imagining the listbox as a radiobutton, if I select an item in one, it is no longer selected in the other. I tried so:
private void listBoxQuestoesObjetivas_SelectedIndexChanged(object sender, EventArgs e)
{
listBoxQuestoesSubjetivas.ClearSelected();
}
private void listBoxQuestoesSubjetivas_SelectedIndexChanged(object sender, EventArgs e)
{
listBoxQuestoesObjetivas.ClearSelected();
}
The problem is that when I click on one, it desiccates both, it’s very strange '-' Remembering that I am using Microsoft.Net Framework 2.0
Your first suggestion I’ve tried and gives exactly the same thing, the second suggestion is exactly the same as mine
– Ícaro Dantas
It is not the same, you are using the event "Selectedindexchanged", if you use the event that is in the answer works 100%, note that the answer is with the event "Click". The Selectedindexchanged event clears the selected ones after you have already clicked on the controller, the "Click" event clears the selected ones before Selectedindex is changed.
– Robss70