On my form I have the image and in my resource file I have 10 images.
Can someone assist me with my code on how to add the right website link to the right image please, thank you.
Can someone assist me with my code on how to add the right website link to the right image please, thank you.
Code:
Private Sub PictureBox1_Click(sender As System.Object, e As System.EventArgs) Handles PictureBox1.Click
PictureBox1.Image = My.Resources.Resources.Banner_0
Dim BANNERSTRING As String
Randomize()
BANNERSTRING = "My.Resources.Resources.Banner_" & Int(Rnd() * 1000000) Mod 10
'MsgBox(BANNERSTRING)
'Dim ImgLoad As Bitmap = GetObject(BANNERSTRING)
PictureBox1.Image = My.Resources.ResourceManager.GetObject("My.Resources.Resources.Banner_1")
End Sub