Private Sub Command1_Click() If Text1.Text = Text2.Text Then MsgBox ("完全正确") Else For i = 1 To Len(Text1.Text) If Left(Text1.Text, i) <> Left(Text2.Text, i) Then Text3.Text = Left(Text1.Text, i - 1) Exit For End If Next i End If End Sub 额……还是不会把光标移动,于是加了个text3,也算是可以用了