利用以下程式建立了,3個TextBox
Private Sub CommandButton1_Click()
Dim i,k As Integer
Dim theTextBox As Control
K=10
For i= 1 to 3
Set theTextBox =ME.Controls.Add("Forms.TextBox.1", "TextBox"&i, True)
With theTextBox
.Left = 210
.Top=K
K=.Top+.Height+ 18
End with
Next i
Set theTextBox =Nothing
End sub
後續每個TextBox想要_Change()的事件,並控制每個TextBox只能輸入數字
請問該怎麼寫???作者: GBKEE 時間: 2016-4-8 13:45