Dim imagepath As String Dim x As Integer Dim rand As New Random x = rand.Next(1, 6) imagepath = "c:\blabla" & x.ToString & ".jpeg" Me.BackgroundImage = Image.FromFile(imagepath)
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionJ'espère que tu ne fais pas un "rand.Next(1, 6)" pour tes 3 fichiers...
Pourquoi ? enfaite j'ai 4 fichiers :)
"en testant un peu tout !", comme l'a fait notre ami turpidé