vb编写,我把一组图片放在两个 picturebox里随机一起出现,但是为什么出现的图片是一样的
怎么样才可以不同?这是我编写的代码DimnumAsIntegernum=(Rnd()*1000000Mod51)+1PictureBox1.Image=Image.Fro...
怎么样才可以不同?这是我编写的代码
Dim num As Integer
num = (Rnd() * 1000000 Mod 51) + 1
PictureBox1.Image = Image.FromFile(path + "/21/" + num.ToString + ".jpg")
PictureBox2.Image = Image.FromFile(path + "/21/" + num.ToString + ".jpg") 展开
Dim num As Integer
num = (Rnd() * 1000000 Mod 51) + 1
PictureBox1.Image = Image.FromFile(path + "/21/" + num.ToString + ".jpg")
PictureBox2.Image = Image.FromFile(path + "/21/" + num.ToString + ".jpg") 展开
展开全部
num = (Rnd() * 1000000 Mod 51) + 1
PictureBox1.Image = Image.FromFile(path + "/21/" + num.ToString + ".jpg")
num = (Rnd() * 1000000 Mod 51) + 1
PictureBox2.Image = Image.FromFile(path + "/21/" + num.ToString + ".jpg")
随机2次
PictureBox1.Image = Image.FromFile(path + "/21/" + num.ToString + ".jpg")
num = (Rnd() * 1000000 Mod 51) + 1
PictureBox2.Image = Image.FromFile(path + "/21/" + num.ToString + ".jpg")
随机2次
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询