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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top