Misbehavior From a ListBox

I have a version 1.1 Windows ListBox in MultiExtended mode using C# (I tried it in VB.NET as well) which is performing badly.  I need to be able to hide and show the bad boy and when I set it to Visible = false it throws away all but the first selected item. I also tried putting it on a panel, and on a custom control...  Same result.
I was able to simulate proper behaviour by saving the selected items before setting visible to false and then resetting them after setting visible back to true.
I don't say this very often, but this must be a bug in the control.  Does anyone have a better work around


Answer this question

Misbehavior From a ListBox

  • epepping

    Hi Jerry -
    I've moved your post to the Windows Forms forums where you might find more help.

    Thanks,
    Karen Liu
    Visual C#

  • Misbehavior From a ListBox