我在.NET編程中更新。控件在運行時創建後存儲在哪裏?
我需要在運行時創建多個TextBoxies。
我有以下的VB .NET代碼:在運行時點擊Button1的後形成多個文本Boxies
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim textbox1 As New TextBox
static Dim shiftDown As Integer
static Dim counter As Integer
counter += 1
shiftDown = shiftDown + 30
textbox1.Name = "Textbox" + counter.ToString()
textbox1.Size = New Size(170, 10)
textbox1.Location = New Point(10, 32 + shiftDown)
textbox1.Visible = True
GroupBox1.Controls.Add(textbox1)
End Sub
此代碼示例創建。
我的問題,點擊按鈕後,創建的文本框存儲在哪裏?