0

Hi.
I want to create a picturebox when a specific button is clicked. The code below displays nothing :(

TC has an initial value of 0. It will count he number of times the picturebox has been created.

Private Sub Button12_Click(sender As Object, e As EventArgs) Handles Button12.Click
        TC = TC + 1
        Dim TCP As New Integer
        TCP = TC * 100
        Dim NT As New PictureBox
        NT.Anchor = AnchorStyles.Top And AnchorStyles.Left
        NT.BackColor = Color.Transparent
        NT.Enabled = True
        NT.Image = My.Resources.Tab01
        NT.Location = New Point(TCP, 85)
        NT.Size = New Size(100, 30)
        NT.SizeMode = PictureBoxSizeMode.StretchImage
        NT.Visible = True
End Sub
2
Contributors
3
Replies
20
Views
4 Years
Discussion Span
Last Post by Luc001
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.