Why is it that windows has all of these controls "built in" with no obvious support for anything?
Also, listbox doesn't inherently deslect items. Seriously, when the user clicks in the client rect of the listbox and isn't clicking an item, he obviously wants to deselect. Another commonly required feature that isn't in their.
Ofcourse, I may just be blind and missing it.
Edit: Argh, I thought I had it figured out. I am just doing:
String CurItem = lboxFrames.SelectedItem.ToString();
int nIndex = lboxFrames.FindString(CurItem, -1);
if(nIndex == -1)
inside of SelectedIndexChanged() and I keep getting a stack overflow on SetSelected() even though the index is correct.