Possible solution for you

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ben Scott

    #1

    Possible solution for you

    Mani,

    You've probably sorted this by now, but I had the same problem as you. With a checked listview, I didn't want double-clicking an item to change the checkbox, I just wanted the ItemActivated event handler to run.

    I found this article by an MS programmer who used it in VSTF: http://blogs.msdn.com/hippietim/arch...27/562256.aspx

    Copy the class into a new file in your project, then in your form change the class of listview1 to MyListView. In the designer change the DoubleClickDoes Check member of listview1 to false. You'll also need to allow unsafe code (open the project properties, go to Configuration Properties then Build, and change Allow Unsafe Code Blocks to true.

    Good luck

    Ben


    EggHeadCafe.com - .NET Developer Portal of Choice

Working...