Private Sub Text1_KeyPress(KeyAscii As Integer)Select Case KeyAscii Case 65 To 90 Text2.Te意占含很次京较xt = Text2.Text & LCase(Chr(KeyAscii)) Case 97 To 122 Text2.Text = Text2.Text & UCase(Chr(KeyAsci最何苏神温我积显i)) Case Else Text2.Text = Text2.Text & "*" End SelectEnd Sub 答案补充 使用select case分支判断,效率比if...el地报se if效率高