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. CheckListBox

CheckListBox

Scheduled Pinned Locked Moved C#
tutorialquestion
4 Posts 4 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.
  • S Offline
    S Offline
    Saikek
    wrote on last edited by
    #1

    Hello! Can you tell me how to manualy check some items ? For example i have in checkbox value1 value2 value3 value4 and i want to check value2 and value3. Thanks very much.

    One nation - underground

    K R K 3 Replies Last reply
    0
    • S Saikek

      Hello! Can you tell me how to manualy check some items ? For example i have in checkbox value1 value2 value3 value4 and i want to check value2 and value3. Thanks very much.

      One nation - underground

      K Offline
      K Offline
      Karl 2000
      wrote on last edited by
      #2

      Set the checked property of the checkbox to true.

      Karl

      1 Reply Last reply
      0
      • S Saikek

        Hello! Can you tell me how to manualy check some items ? For example i have in checkbox value1 value2 value3 value4 and i want to check value2 and value3. Thanks very much.

        One nation - underground

        R Offline
        R Offline
        Rudolf Jan
        wrote on last edited by
        #3

        First you must retrieve the index of the item, suing some find method (I forgot the exact syntax). Then use somthing lik MyCheckedListbox.Items[idx].Checked=true; Check the class members documentation for details please.

        1 Reply Last reply
        0
        • S Saikek

          Hello! Can you tell me how to manualy check some items ? For example i have in checkbox value1 value2 value3 value4 and i want to check value2 and value3. Thanks very much.

          One nation - underground

          K Offline
          K Offline
          Keshav V Kamat 0
          wrote on last edited by
          #4

          use the checked property and then search it using the appropriate index or the string.

          Keshav Kamat :) India

          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