BUG: ListBox SetSelected does nothing when invisible

  • Thread starter Thread starter John Wood
  • Start date Start date
J

John Wood

If you run SetSelected on an invisible ListBox it seems to ignore the call.
This is especially annoying when the ListBox is on a tab control and the tab
isn't selected at startup... it's impossible to initialize selection on the
listbox!

Anyone have any suggestions?

TIA,
John
 
Hi John,

I just tried this and I got the same problem. But when I
used the SelectedIndex property instead, the problem
doesn't happen. So you may want to set your selections
via this property instead.

Hope this helps,
Keith DeGrace
 
Back
Top