Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. CheckedListBox.CheckedItems Issue

CheckedListBox.CheckedItems Issue

Scheduled Pinned Locked Moved Windows Forms
csharphelpquestion
4 Posts 4 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Hi There, I'm having some trouble with CheckedListBoxes in my application. The application is written in C# in .NET 1.1. It's multi-tabbed, and on each tab there is an instance of my user control, which contains 6 combo's and 6 CheckedListBoxes. The control works fine when you stay on a single tab, however when I switch tab and come back again, all the CheckedListBoxes still have their data, but they lose the CheckedItems collection, so they are all unchecked. Has anyone come across this problem? Thanks in advance,

    R C 2 Replies Last reply
    0
    • L Lost User

      Hi There, I'm having some trouble with CheckedListBoxes in my application. The application is written in C# in .NET 1.1. It's multi-tabbed, and on each tab there is an instance of my user control, which contains 6 combo's and 6 CheckedListBoxes. The control works fine when you stay on a single tab, however when I switch tab and come back again, all the CheckedListBoxes still have their data, but they lose the CheckedItems collection, so they are all unchecked. Has anyone come across this problem? Thanks in advance,

      R Offline
      R Offline
      Rob_ICS
      wrote on last edited by
      #2

      Jim, (I could wait til you get back from lunch.. but I think the code project needs to know as well :-)) I found the problem, its a known bug in .NET 1.1. Documented here: http://support.microsoft.com/kb/833033 The problem only occurs when the checked list box is bound to a data table. It looks like Microsoft's only solution is to maintain a collection of checked items and refill on tab switch (rubbish!). But I guess that is what we're going to have to do... Rob.

      1 Reply Last reply
      0
      • L Lost User

        Hi There, I'm having some trouble with CheckedListBoxes in my application. The application is written in C# in .NET 1.1. It's multi-tabbed, and on each tab there is an instance of my user control, which contains 6 combo's and 6 CheckedListBoxes. The control works fine when you stay on a single tab, however when I switch tab and come back again, all the CheckedListBoxes still have their data, but they lose the CheckedItems collection, so they are all unchecked. Has anyone come across this problem? Thanks in advance,

        C Offline
        C Offline
        Ch_Shahzad iqbal
        wrote on last edited by
        #3

        I think when u change the Tab Button then u Fill the The Combo with DataBase, So u lost urs Current Status/View State

        N 1 Reply Last reply
        0
        • C Ch_Shahzad iqbal

          I think when u change the Tab Button then u Fill the The Combo with DataBase, So u lost urs Current Status/View State

          N Offline
          N Offline
          nav_smec
          wrote on last edited by
          #4

          Thanks to reply, But my question is not related to database:confused:. I only want scroll listbox together at same time. If i scroll first listbox than second listbox automatically scroll together. Thanks:), Naveen Jatav

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups