CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2001
    Location
    Canada
    Posts
    182

    ListBox whose style is "CheckBox"

    Hi there,

    I found that it doesn't work perfectly when the style property of ListBox is set to CheckBox. What I mean is when I click on one item in the list, the check box before this item won't be checked until I click right on it. Is there any way to check it automatically when click the item?

    In addition to this:
    List1.Selected(intIndex)=True

    I wonder if there is there any property like:

    ***.Checked=True

    Thanks.

    Regards,

    Michi
    MCSE, MCDBA

  2. #2
    Join Date
    May 2001
    Location
    India, Bangalore
    Posts
    14

    Re: ListBox whose style is "CheckBox"

    Hello Michi,

    As you said when we click on one item in the list, it will not be checked but when you double click checkbox will be get selected, (instead of clicking on the checkbox).

    Following set of events will be generated when you clicked on the item in the list box for the First Time:
    Click event of the List box will be generated.

    Following set of events will be generated when you clicked on the same item in the list box for the second time:
    Firstly ItemCheck event of the List box. Secondly Click event of the List box will be generated..

    bpp


  3. #3
    Join Date
    May 2001
    Location
    Canada
    Posts
    182

    Re: ListBox whose style is "CheckBox"

    Thanks. I will tell my customer to use double click instead.

    Regards,

    Michi
    MCSE, MCDBA

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured