Re: Listview Checkbox and Manual Edit of labels
From: YYZ (notapplicable)
Date: 04/21/04
- Next message: Bob O`Bob: "Re: Listview Checkbox and Manual Edit of labels"
- Previous message: Bob Butler: "Re: Listview Checkbox and Manual Edit of labels"
- In reply to: Bob Butler: "Re: Listview Checkbox and Manual Edit of labels"
- Next in thread: Bob Butler: "Re: Listview Checkbox and Manual Edit of labels"
- Reply: Bob Butler: "Re: Listview Checkbox and Manual Edit of labels"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 11:48:09 -0500
"Bob Butler" <tiredofit@nospam.com> wrote in message
news:uXyQW57JEHA.228@TK2MSFTNGP10.phx.gbl...
> "YYZ" <notapplicable> wrote in message
> news:ew9T7u7JEHA.3084@TK2MSFTNGP11.phx.gbl
> <cut>
> > That's it! Run it, click ont he first item in the list (on the
> > text), and you'll see it check then uncheck. At least that what
> > happens on my screen.
>
> I'm using VB6 SP5 and the Windows Common Controls show up as SP4 in the
> list.
Thanks for your response Bob.
I'm also using VB6 SP5. The common controls (for VB 6) show up like this:
Microsoft Windows Common Controls 6.0
Microsoft Windows Common Controls-2 6.0 (SP4)
Microsoft Windows Common Controls-3 6.0 (SP5)
The listview is in the first one, not either of the other 2.
>With that I do not see what you describe. My guess is that changing
> the Checked state from code is triggering the Click event for you again; if
> so, try something like this:
I copied and pasted your code (after commenting out mine) and the exact same
thing happened -- the item checked itself (good) then after a very small delay
unchecked itself (bad).
I actually did try something along the same lines in my real project, and it
didn't work either. I didn't try it in the small test project before I posted
the first time, which is why I didn't mention it. Also, if I put a breakpoint
in the ItemClick event, let it stop then press F5 to continue running, it works
fine, just like before.
DoEvents makes no difference, either.
Thanks for trying it, though. I really do appreciate it.
Matt
- Next message: Bob O`Bob: "Re: Listview Checkbox and Manual Edit of labels"
- Previous message: Bob Butler: "Re: Listview Checkbox and Manual Edit of labels"
- In reply to: Bob Butler: "Re: Listview Checkbox and Manual Edit of labels"
- Next in thread: Bob Butler: "Re: Listview Checkbox and Manual Edit of labels"
- Reply: Bob Butler: "Re: Listview Checkbox and Manual Edit of labels"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|