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. Visual Basic
  4. Selecting all the Items in Checked List Box

Selecting all the Items in Checked List Box

Scheduled Pinned Locked Moved Visual Basic
questionhelp
3 Posts 3 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Dear, Is there someone of you knows that how can I programmatically select all the items in a Checked List Box? I tried to do it but I couldn't find any property/method which can let me to iterate through the items of ListBox / Checked Listbox so that I may be able to select them. Thanks for your help. Sameers

    Richard DeemingR 1 Reply Last reply
    0
    • L Lost User

      Dear, Is there someone of you knows that how can I programmatically select all the items in a Checked List Box? I tried to do it but I couldn't find any property/method which can let me to iterate through the items of ListBox / Checked Listbox so that I may be able to select them. Thanks for your help. Sameers

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Sub CheckList(ByVal lst As CheckedListBox, ByVal value As Boolean)
      Dim i As Integer
      For i = 0 To lst.Items.Count - 1
      lst.SetItemChecked(i, value)
      Next
      End Sub


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      A 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        Sub CheckList(ByVal lst As CheckedListBox, ByVal value As Boolean)
        Dim i As Integer
        For i = 0 To lst.Items.Count - 1
        lst.SetItemChecked(i, value)
        Next
        End Sub


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Thaks dear, The same thing I did just two days ago myself. You are a little late but it is good that at least you are. ;P Again, Very very thanks to you, Sameers

        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