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. C#
  4. problems in checklistbox

problems in checklistbox

Scheduled Pinned Locked Moved C#
helpquestion
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.
  • A Offline
    A Offline
    Amitava Dutta
    wrote on last edited by
    #1

    Hi I have written this code in web based form for checkListBox and getting "chkListAttribute.Items[iCount].Selected" AS true/false value but while using this in WINDOWS APPLICATION i am not getting "chkListAttribute.Items[iCount].Selected" (DOT Selected) . How can I do this by this process.Please help for (int iCount = 0; iCount < chkListAttribute.Items.Count; iCount++) { if (chkListAttribute.Items[iCount].Selected == true) { if (chkListAttribute.Items.Count == 0) -- do something else -- do something } } Thanks In Advance Amitava

    C 1 Reply Last reply
    0
    • A Amitava Dutta

      Hi I have written this code in web based form for checkListBox and getting "chkListAttribute.Items[iCount].Selected" AS true/false value but while using this in WINDOWS APPLICATION i am not getting "chkListAttribute.Items[iCount].Selected" (DOT Selected) . How can I do this by this process.Please help for (int iCount = 0; iCount < chkListAttribute.Items.Count; iCount++) { if (chkListAttribute.Items[iCount].Selected == true) { if (chkListAttribute.Items.Count == 0) -- do something else -- do something } } Thanks In Advance Amitava

      C Offline
      C Offline
      Christian Wikander
      wrote on last edited by
      #2

      The System.Windows.Forms.CheckedListbox contains the following properties that you can use to find out what nodes are selected: .SelectedIndex .SelectedIndices .SelectedItem .SelectedItems .SelectedValue If you want to find out which ones are checked you should use any of the following: .CheckedIndices .CheckedItems

      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