Checked List Box in VB DOT .NET - Checked items gets unchecked when used inside Tab Control and while tabbing

Hi

If you are using a Checked List Box Control into a Tab Control on VB .Net application, then when you switch between tabs, the checked items gets disappeared. This bug is already listed in the Microsoft article.

I figured out a way on how to avoid this error. Just by adding the checked list box in a user control and then using the user control in your tab control will not erase the checked items list. Please try.

Thanks,

CM




Answer this question

Checked List Box in VB DOT .NET - Checked items gets unchecked when used inside Tab Control and while tabbing

  • James Mark

    For reference I add the BUG report

    http://support.microsoft.com/default.aspx scid=kb;en-us;833033

    They do not mention if the 2.0 framework is affected so might be fixed.



  • pascalbjk

    Hi, i was looking for something about databinding checked listbox & discovered this thread

    I m using VS2003, VB.net

    My question is, as we proide datasource property in the binding object for chkListBox, then assigns DisplayMember, ValueMember to bind the ChkList & it automatically pops the list [without writing any more code]

    I m talking about this

    lstInActive.DataBindings.Add(New Binding("DataSource", objFcPartySetup.DSPartySetup, "PartyInActiveRoles"))

    lstInActive.DisplayMember = "NameField"

    lstInActive.ValueMember = "IdField"

    but the chkList gets populated with no item checked, HOW WE TELL THE BINDING OBJECT TO CHECK THESE ITEMS WITH RESPECT TO SUCH DATABASE FIELD & KEEP UNCHECK SUCH ITEMS

    apart from writing a for loop & checking ourselves, can there be a CHEKEDMEMBER property which we assign a database field the system does the rest of work, I hope i have made my self clear



  • Husk60

    i think a 3rd party tool, a specChkListBox with such interface can solve the problem

    i had one but it wasn't from a reliable source & so i don't use it, does any one have such a reliable 3rd party specChkListBox with the required interface



  • E. J.

    Hi.

    I have the same problem, but i keep trying you solution with not success. Well, i have a tabControl with 5 or 6 tabs. In every tab i have a listcheckedbox that its populate with a table of my db (slq 2000 server). I put the listcheckbox in a control (including the conexion and data load) but i have no solution to this problem. I hope someone can help me

    Thanks,

    Marlon



  • Checked List Box in VB DOT .NET - Checked items gets unchecked when used inside Tab Control and while tabbing