Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27445

Random Images with website links

$
0
0
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.

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


Viewing all articles
Browse latest Browse all 27445

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>