Private Sub Command1_Click() If Me.Command1.Caption = "加上下划线" Then Text1.FontUnderline = True Me.Command1.Caption = "去掉下划线" Else Text1.FontUnderline = False Me.Command1.Caption = "加上下划线" End If End Sub
Private Sub Form_Load() Me.Command1.Caption = "加上下划线" End Sub