Load Picture1(Picture1.UBound + 1)
Load Label1(Label1.UBound + 1)
Load sock(sock.UBound + 1)
SockIndex = Label1.UBound
SockIndex = Picture1.UBound
SockIndex = sock.UBound
Picture1(Picture1.UBound).Visible = True
Picture1(Picture1.UBound).Left = i * 3000
Label1(Label1.UBound).Visible = True
Label1(Label1.UBound).Left = i * 3000
現象:`Picture1` 和 `sock` 正常動態創建,`Label1` 不顯示。
Load Label1(Label1.UBound + 1)
With Label1(Label1.UBound)
.Visible = True
.Left = i * 3000
.Top = Picture1(Picture1.UBound).Top + Picture1(Picture1.UBound).Height + 100
.Width = 2000
.Caption = sock(SockIndex).RemoteHostIP
.ZOrder vbBringToFront
End With