怎么做出包括5个悾件和5个事件的VB题

来源:百度知道 编辑:UC知道 时间:2024/05/11 00:40:42
急求

啊,还问了几次,帮你写一个了,
在窗体画五个 Command控件,把我代码直接复制进去就可以了:
Private Sub Command1_Click()
MsgBox "我是猪"
End Sub

Private Sub Command2_Click()
MsgBox "我还是猪"
End Sub

Private Sub Command3_Click()
MsgBox "我真的是猪"
End Sub

Private Sub Command4_Click()
MsgBox "不知道说是什么了"
End Sub

Private Sub Command5_Click()
MsgBox "哈哈"
End Sub

Private Sub Form_Load()
Command1.Caption = "第一事件"
Command2.Caption = "第二事件"
Command3.Caption = "第三事件"
Command4.Caption = "第四事件"
Command5.Caption = "第五事件"

End Sub

简单啊,画5个控件,每个控件的事件写上
private sub command*_click()
print 1+1
end sub
看啊 多简单啊

你说出题?