Problem trying to figure this out, using a combo box selection I need to go to each folder, Cam 1, Cam 2, Cam 4, Cam 6, Cam 7,and Cam 8 and display each picture (from selection) from each folder and display in pictureboxes pcbCam1, pcbCam2, pcbCam4, pcbCam6, pcbCam7, and pcbCam8.
So far the code works for one picture box not the others. Also when I reenter a different date the counter (+1) messes up....HELP
Dim dt As DateTime = DateTime.ParseExact(cmbDate.Items(cmbDate.SelectedIndex), "MMMM d, yyyy", Nothing)
Dim folder As String = "C:\Projects\Dar\Queue Review Files\" & dt.Month & "-" & dt.Day & "\Cam " & Me.cmbDate.SelectedIndex + 1
Dim fileName As String = folder & "\" & Me.cmbTime.Text
Me.pcbCam1.Image = Image.FromFile(fileName)
So far the code works for one picture box not the others. Also when I reenter a different date the counter (+1) messes up....HELP
Dim dt As DateTime = DateTime.ParseExact(cmbDate.Items(cmbDate.SelectedIndex), "MMMM d, yyyy", Nothing)
Dim folder As String = "C:\Projects\Dar\Queue Review Files\" & dt.Month & "-" & dt.Day & "\Cam " & Me.cmbDate.SelectedIndex + 1
Dim fileName As String = folder & "\" & Me.cmbTime.Text
Me.pcbCam1.Image = Image.FromFile(fileName)