Dim ListFile() As String
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ListFile = Directory.GetFiles("ใส่ Directory ที่ต้องการดู")
HScrollBar1.Maximum = ListFile.Length
End Sub
Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll
PictureBox1.Image = Image.FromFile(ListFile(HScrollBar1.Value))
End Sub