I have 2 buttons, one is a browse button that allows you to choose which folder you want to select the images from and a GO button that gets a random image from that folder
here is what i've gotten so far:
Public Class directory
Private Sub browsebtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles browsebtn.Click If (folderbrowse.ShowDialog() = DialogResult.OK) Then 'texxt.Text is there to display what you've selected texxt.Text = folderbrowse.SelectedPath End If End Sub Private Sub btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn.Click Pic.ImageLocation = texxt.Text & "*.png" 'Pic is the name of the picturebox End Sub
Do you guys know how i can make it so that once i've chosen the direcotry (where the images i want to view are) and hit GO the picturebox displays one random .png or .jpg image?
I would also be interested in knowing how to make 2 other buttons to act as NEXT image (starting from the random pick) and a PREVIOUS image..
Thanks for reading!