vb 对话框 窗体在form1里按下command1后弹出msgbox确定对话框,确定后返回form1
vb对话框窗体在form1里按下command1后弹出msgbox确定对话框,确定后返回form1,再次按下command1后则弹出form2要怎么实现啊,我弄的总是ms...
vb 对话框 窗体在form1里按下command1后弹出msgbox确定对话框,确定后返回form1,再次按下command1后则弹出form2要怎么实现 啊,我弄的总是msgbox跟form2一起弹出,求大侠讲的详细具体点啊,本人菜菜鸟
展开
2个回答
展开全部
Option Explicit
Dim BoL_butClick As Boolean
Private Sub Command1_Click()
Select Case BoL_butClick
Case False
MsgBox ""
Command1.Caption = "点击打开窗口2"
Case True
Load Form2
Form2.Show 1
Command1.Caption = "点击弹出对话框"
End Select
BoL_butClick = Not BoL_butClick
End Sub
Private Sub Form_Load()
Command1.Caption = "点击弹出对话框"
End Sub
Dim BoL_butClick As Boolean
Private Sub Command1_Click()
Select Case BoL_butClick
Case False
MsgBox ""
Command1.Caption = "点击打开窗口2"
Case True
Load Form2
Form2.Show 1
Command1.Caption = "点击弹出对话框"
End Select
BoL_butClick = Not BoL_butClick
End Sub
Private Sub Form_Load()
Command1.Caption = "点击弹出对话框"
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询