- ©«¤l
- 5923
- ¥DÃD
- 13
- ºëµØ
- 1
- ¿n¤À
- 5986
- ÂI¦W
- 0
- §@·~¨t²Î
- win10
- ³nÅ骩¥»
- Office 2010
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥xÆW°ò¶©
- µù¥U®É¶¡
- 2010-5-1
- ³Ì«áµn¿ý
- 2022-1-23
        
|
¥»©«³Ì«á¥Ñ GBKEE ©ó 2016-4-8 13:47 ½s¿è
¦^´_ 1# modelcrazyer
1 ªí³æ¼Ò²Õµ{¦¡½X- Option Explicit
- Dim AA(1 To 3) As New Class1
- Private Sub CommandButton1_Click()
- Dim theTextBox As Control, K As Integer, I As Integer
- K = 10
- For I = 1 To 3
- Set theTextBox = Me.Controls.Add("Forms.TextBox.1", "TextBox" & I, True)
- Set AA(I).C_TextBox = theTextBox
- With theTextBox
- .Left = 210
- .Top = K
- K = .Top + .Height + 18
- End With
- Next I
- Set theTextBox = Nothing
- End Sub
½Æ»s¥N½X 2 ª«¥óÃþ§O¼Ò²Õ·s¼W¤@¼Ò²Õ:·|¦Û°Ê©R¦W Class1- Option Explicit
- Public WithEvents C_TextBox As MSForms.TextBox
- Private Sub C_TextBox_Change()
- If Not IsNumeric(C_TextBox) Then MsgBox C_TextBox & " ¤£¬O¼Æ¦r"
- End Sub
½Æ»s¥N½X |
|