Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Remove The new_label I maked it

$
0
0

I want to remove the new_label i make from this code

Dim x, y As Integer
x = 600
7 = 300

For Each r As DataGridViewRow In DataGridView1.Rows
If r.IsNewRow = True Then
Return
End IF

Dim new_Label As New Label()

With r
new_label.text = .Cell("name").Value.ToString
new_label.Location = New point (x, y)

Me.Controls.Add(new_label)
y +=new_label.Hight + 10

End With

New

How i can remove the new_label .. When i click on Button1 .. When the program running

Thank you

Shady ,,


Viewing all articles
Browse latest Browse all 2535

Trending Articles