Private Sub Text1_Change()
If LenB(StrConv(Text1.Text, vbFromUnicode)) <> 2 * Len(Text1.Text) Then
Text1.Text = Left$(Text1.Text, Len(Text1.Text) - 1)
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If (KeyAscii = Asc(",")) Or (KeyAscii = Asc("。")) Then
Text1.Text = Left$(Text1.Text, Len(Text1.Text) - 1)
End If
End Sub