Guest User

Untitled

a guest
Jan 21st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. ListBox1.Items.Add(TextBoxTicketID.Text)
  2. TextBoxTicketID.Text = ""
  3. Me.TextBoxTicketID.Select()
  4.  
  5. Dim x1 As Integer = 789
  6. Dim y1 As Integer = 120
  7.  
  8. For i As Integer = 0 To ListBox1.Items.Count - 1
  9. Dim key As String = ListBox1.Items(i).ToString()
  10.  
  11. 'adds picturebox for as many listbox items added
  12. Dim MyPictureBox As New PictureBox()
  13. MyPictureBox.Name = "pic" + key
  14. MyPictureBox.Location = New Point(x1, y1)
  15. MyPictureBox.Size = New Size(12, 12)
  16. MyPictureBox.SizeMode = PictureBoxSizeMode.StretchImage
  17. Me.Controls.Add(MyPictureBox)
  18. MyPictureBox.Image = My.Resources.Warning1
  19. x1 += 0
  20. y1 += 13
  21. Next i
Add Comment
Please, Sign In to add comment