Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

politie

1 view
Skip to first unread message

pappa

unread,
Sep 30, 2009, 12:45:33 PM9/30/09
to

Van: "Mojo" <ple...@dont.spam.com>
Onderwerp: Keeping 2 listboxes in sync - VB6
Datum: zondag 5 juli 2009 15:07

Hi All

Hope I explain this OK!

Basically I've got one listbox (incorporating checkboxes) that overlaps
another so that the following display is shown:

[ ] [ ] Cats
[ ] [ ] Dogs
[ ] [ ] Horses
[ ] [ ] Sheep
etc... etc..

The reason for this is so that the user can use the 1st column of checkboxes
to include particular people and the 2nd one to exclude them.

To try and keep both listboxes in sync when the user uses the top listbox's
scrollbar to go up and down I use the following code:

Private Sub lsbInitMenuList_Scroll(Index As Integer)
lsbInitMenuList(0).TopIndex = lsbInitMenuList(1).TopIndex
End Sub

Now I originally tested this on 3 x WinXP machines and it works fine, but
I've run it on a couple more XP machines and Vista machines and the
scrollbar scrolling makes the list go wappie!

The underneath listbox doesn't seem to move as the top listbox starts to go
down and then the app seems to catch up to put them back into sync. Having
tried it on a Vista machine a few minutes go the listboxes do eventually
line up again, but the wappie-ness of the entries go up-and-down and out of
sync looks pants and unprofessional. Is there anyway I can make this
smoother??

Thanks


Estefania

unread,
Dec 19, 2009, 12:51:16 PM12/19/09
to

"pappa" <r.di...@home.nl> escribió en el mensaje de
noticias:O0yux1eQ...@TK2MSFTNGP06.phx.gbl...

Estefania

unread,
Jan 2, 2010, 12:01:54 PM1/2/10
to

"Estefania" <Sant merdir> escribió en el mensaje de
noticias:9FC3464D-37DA-4F3A...@microsoft.com...

Estefania

unread,
Jan 3, 2010, 2:18:07 PM1/3/10
to

"Estefania" <Sant merdir> escribió en el mensaje de

noticias:97C07CEA-3A37-425A...@microsoft.com...

0 new messages