-1
我有一個列表KeyValuePair
s,其中KeyValuePair
s的數量隨時間變化。在一個表單中,我需要爲每個KeyValuePair
創建一個包含Value
作爲文本的標籤。在vb.net中創建多個標籤並添加文本
我該怎麼做?
這是我曾嘗試...
For Each element In keyvalueP
Dim Label1 As New Label
With Label1
.Width = 512
.Height = 18
.Left = 12
.Text = " Nr. " & i & " - Matchtype " & element.Value.ToString
End With
i = i + 1
Next
的解決方案,所以我們可以看到你已經嘗試了什麼至今? –