VB:在窗体上有一个文本框,名称为Txt1:两个命令按钮,名称分别为Cmd1,Cmd2,标题分别为“显示”,
VB:在窗体上有一个文本框,名称为Txt1:两个命令按钮,名称分别为Cmd1,Cmd2,标题分别为“显示”,
日期:2013-09-23 17:08:06 人气:2
Private Sub Cmd2_Click()
End
End Sub
Private Sub Cmd1_Click()
Txt1.Text = "你好"
Cmd2.Enabled = True
End Sub
Private Sub Form_Load()
Cmd2.Enabled = False
Cmd1.Caption = "显示"
Cmd2.Caption = "退出"
End Sub