R
RAM
I have a list box control named FileList. The list box contains the
location of multiple video and or images on my C drive. I have eight video
displays named MP1 thru MP8.
The idea is to populate the image controls with the video or image while
automatically moving through the listbox. The first image represented within
the listbox populates all the image controls. I have the following code to
select the image and cycle through the list box.
If FileList.ListIndex = 0 Then
MP1.FileName = FileList.Value
LCN = 1
End If
If FileList.ListCount > 0 And FileList.ListCount <> 2 Then
FileList.ListIndex = 1 ‘This cycles the list box selection
End If
If FileList.ListCount > 1 Then
MP2.FileName = FileList.Value ‘I thought by setting the index to 1 that the
FileList.Value would change to the value represented by the index 1. But it
does not change.
LblM1 = FileList.Value
LCN = 2
End If
location of multiple video and or images on my C drive. I have eight video
displays named MP1 thru MP8.
The idea is to populate the image controls with the video or image while
automatically moving through the listbox. The first image represented within
the listbox populates all the image controls. I have the following code to
select the image and cycle through the list box.
If FileList.ListIndex = 0 Then
MP1.FileName = FileList.Value
LCN = 1
End If
If FileList.ListCount > 0 And FileList.ListCount <> 2 Then
FileList.ListIndex = 1 ‘This cycles the list box selection
End If
If FileList.ListCount > 1 Then
MP2.FileName = FileList.Value ‘I thought by setting the index to 1 that the
FileList.Value would change to the value represented by the index 1. But it
does not change.
LblM1 = FileList.Value
LCN = 2
End If