Re: Listview Checkbox and Manual Edit of labels

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: YYZ (notapplicable)
Date: 04/21/04


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



Relevant Pages

  • comct232.ocx
    ... I am packaging my project with Installshield Express and I include the ... Microsoft Windows Common Controls ... The destination machine is Win2K SP4 and it complains that: ...
    (microsoft.public.vb.general.discussion)
  • Re: Treeview object declaration for intellisense
    ... Microsoft Windows Common Controls ... in the "Available Resourses" list, ... Stuart McCall wrote: ...
    (microsoft.public.access.modulesdaovba)
  • Re: Listview Checkbox and Manual Edit of labels
    ... "YYZ" wrote in message ... Microsoft Windows Common Controls 6.0 (SP4) ...
    (microsoft.public.vb.general.discussion)
  • Re: What reference is needed to select the progress bar control?
    ... The reference "Microsoft Windows Common Controls 6.0" does exist but it ... appears to be almost at the bottom of the list and not near the other ... Then the Microsoft Windows Common Controls 6.0 all of a sudden revealed its ...
    (microsoft.public.excel.programming)
  • Re: UCase not working in A97 runtime installation...
    ... uncheck it and see if your application works. ... >I would definitely recommend getting rid of any dependencies on the ... >Windows Common Controls, because MS dicks around with that library ...
    (comp.databases.ms-access)