不好意思啊,前面不知道是怎么回事,每次提交总是那样,我改了一下:Private Sub CO1_Click() Lb2.Caption =str( Val(Te1.Text) + Val(Te2.Text) )End Sub Private Sub CO2_Click() Lb2.Caption =str( val(Te1.Text) - val(Te2.Text)) End Sub Private Sub CO3_Click() Lb2.Caption = str(val(Te1.Text) * val(Te2.Text)) End Sub Private Sub Co4_Click() If val(Te2.Text)=0 ThenMsgBox "分母不能为0!",48,"警告"ElseLb2.Caption =str( Val(Te1.Text) / Val(Te2.Text) )End IfEnd Sub