vb 一个文本框,要设置一个确定按钮,一个清除或者重置的按钮,一个退出了按钮,怎样做?
第1个回答 推荐于2016-04-20
直接在左侧工具栏拖过来就行了~~拖一个文本框,三个按钮。
Private Sub Command1_Click()
MsgBox "确定成功"
End Sub
Private Sub Command2_Click()
Text1.Text = ""
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub Form_Load()
Command1.Caption = "确定"
Command2.Caption = "重置"
Command3.Caption = "退出"
End Sub本回答被网友采纳
Private Sub Command1_Click()
MsgBox "确定成功"
End Sub
Private Sub Command2_Click()
Text1.Text = ""
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub Form_Load()
Command1.Caption = "确定"
Command2.Caption = "重置"
Command3.Caption = "退出"
End Sub本回答被网友采纳
第2个回答 2010-09-07
Private Sub Command1_Click() '确定代码
End Sub
Private Sub Command2_Click() '清除
Text1.Text = ""
End Sub
Private Sub Command3_Click() '退出
End
End Sub
End Sub
Private Sub Command2_Click() '清除
Text1.Text = ""
End Sub
Private Sub Command3_Click() '退出
End
End Sub