发布网友 发布时间:2024-04-06 13:06
共1个回答
热心网友 时间:2024-04-15 09:40
Private Sub Text1_KeyPress(KeyAscii As Integer) Dim k As Integer If KeyAscii = 13 Then k = Asc(Text1.Text) Text2.Text = k If (k >= Asc("A") And k <= Asc("Z")) Or (k >= Asc("a") And k <= Asc("z")) Then Text2.Text = Text2.Text & "*" End If End If End Sub