在我的窗體裡有多個文本框,它們之間的關系是數組關系,我發現在設置這些文本框的事件時,總是會把它們都一起設置了例如:
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0
End Sub
我能分開它們嗎,或是該怎樣做呢?謝謝!
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0
End Sub
我能分開它們嗎,或是該怎樣做呢?謝謝!
全站熱搜
留言列表