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. ListView.ItemCheck event

ListView.ItemCheck event

Scheduled Pinned Locked Moved C#
question
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.
  • Z Offline
    Z Offline
    zaboboa
    wrote on last edited by
    #1

    Hello, I have a tab control and on one of the tabs I have the ListView control that has the ItemCheck event. When application starts, the tab that contains the ListView does not have focus. But if I select that tab, the ItemCheck event fires all the time, but only the first time I select the tab. If I start switching the tabs the event does not fire anymore. What's going on? How can I suppress that event firing for the first time? Thank you.

    R 1 Reply Last reply
    0
    • Z zaboboa

      Hello, I have a tab control and on one of the tabs I have the ListView control that has the ItemCheck event. When application starts, the tab that contains the ListView does not have focus. But if I select that tab, the ItemCheck event fires all the time, but only the first time I select the tab. If I start switching the tabs the event does not fire anymore. What's going on? How can I suppress that event firing for the first time? Thank you.

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      According to MSDN, "the ItemCheck event occurs when the check state of an item changes or when the CheckBoxes property is set to true". Perhaps the first instance of the event occurs when you set the list view's CheckBoxes property? /ravi

      This is your brain on Celcius Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      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