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

checkedListBox

Scheduled Pinned Locked Moved Windows Forms
2 Posts 2 Posters 0 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.
  • R Offline
    R Offline
    raushan_9
    wrote on last edited by
    #1

    Hello Friends, I'm using a CheckedListBox in my project which is having checkboxes with their file name. An i want to show the checked file name into another ListBox. But I'm having some problems. First, For checking a checkbox i've click double on a checkbox.So i'm not getting where should i place my code for checking the checkbox at a single click......... Seconds, i've a variable sum=0 i want to add 1 in variable sum as the checkboxes are checked........... It's working fine but when i check my first record it shows 0 and when i check my second checkbox then it shows 1 but it must be 2 at the moment......................

    T 1 Reply Last reply
    0
    • R raushan_9

      Hello Friends, I'm using a CheckedListBox in my project which is having checkboxes with their file name. An i want to show the checked file name into another ListBox. But I'm having some problems. First, For checking a checkbox i've click double on a checkbox.So i'm not getting where should i place my code for checking the checkbox at a single click......... Seconds, i've a variable sum=0 i want to add 1 in variable sum as the checkboxes are checked........... It's working fine but when i check my first record it shows 0 and when i check my second checkbox then it shows 1 but it must be 2 at the moment......................

      T Offline
      T Offline
      Thomas Stockwell
      wrote on last edited by
      #2

      First off, why don't you just have a button that will transfer all checked listboxes to the other listbox. Second, this.chkListBoxs.CheckedItems.Count.

      Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog

      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