-
May 7th, 2022, 05:52 AM
#1
Multiple listboxes
Hi all.
I have a question regarding multiple list boxes. I am coding for Visual Basic 6.
I am developing a box office program and it is nearly complete. However, I have four listboxes, one for show name, one for time, one for date and one for day. The listboxes sit side by side.
The show listbox is lst_show
The date listbox is lst_date
The day listbox is lst_day
The time listbox is lst_time
At the moment all the code to select the show is called by clicking the name in the show listbox. I have coded the others to follow the selection (all in a mouse down event).
Code in lst_show:-
Lst_date.listindex = lst_show.listindex
Lst_time.listindex = lst_show.listindex
Lst_day.listindex = lst_show.listindex
And the same for selecting the shows from the other listboxes. Time, day and date.
Code in lst_day:-
Lst_show.listindex = lst_show.listindex
Lst_time.listindex = lst_show.listindex
Lst_date.listindex = lst_show.listindex
Code in lst_date:-
Lst_show.listindex = lst_show.listindex
Lst_time.listindex = lst_show.listindex
Lst_day.listindex = lst_show.listindex
Code in lst_time:-
Lst_show.listindex = lst_show.listindex
Lst_day.listindex = lst_show.listindex
Lst_date.listindex = lst_show.listindex
All is good and the listboxes all follow each other. The problem I have is that I cannot get the event in lst_day, lst_date and lst_time to trigger the code in lst_show, the idea being that you can click the day, time, date or show to select it.
Any ideas?
Thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|