Dim n As Integer = 1 Dim fileType As String = "*.jpeg" Dim fileDir As String = "C:\temp\" Dim fileName As String Dim PDFPicture As PictureBox For Each fileName In System.IO.Directory.GetFiles(fileDir, fileType) PDFPicture = New PictureBox Dim pdfFile As String = "picPDF" + n.ToString With PDFPicture .Name = pdfFile .ImageLocation = fileName.ToString .Load() .BringToFront() End With n += 1 Next
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)