I have this code:
It makes the picturebox and adds it onto the form as I wanted, but the new top value doesn't set and they just stack on top of each other. How can I fix this?Code:For Each srvr In discord.Guilds Dim pb As New PictureBox pb.Width = 70 pb.Height = 70 pb.Left = 10 Dim topVal as Integer = 30 pb.Top = topVal topVal = +30 Dim ttImage As Bitmap = Bitmap.FromStream(New MemoryStream(tClient.DownloadData(srvr.IconUrl))) pb.BackgroundImage = ttImage pb.Tag = srvr.Id.ToString + " | " + srvr.Name pb.BackgroundImageLayout = ImageLayout.Zoom Me.Controls.Add(pb) pb.BringToFront() Next




Reply With Quote
