vb6.0 关闭窗体,打开窗体。
3个窗体,第一个有2个按钮1和2。点1时显示窗体2,关闭窗体1.关闭2时显示窗体1.点2时,显示窗体3,关闭窗体1.关闭3时显示窗体1.写点代码吧...
3个窗体,第一个有2个按钮1和2。
点1时显示窗体2,关闭窗体1.关闭2时显示窗体1.
点2时,显示窗体3,关闭窗体1.关闭3时显示窗体1.
写点代码吧 展开
点1时显示窗体2,关闭窗体1.关闭2时显示窗体1.
点2时,显示窗体3,关闭窗体1.关闭3时显示窗体1.
写点代码吧 展开
3个回答
展开全部
'Form1代码
Private Sub Command1_Click()
Form2.Show
Me.Hide
End Sub
Private Sub Command2_Click()
Form3.Show
Me.Hide
End Sub
'Form2代码
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
'Form3代码
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
Private Sub Command1_Click()
Form2.Show
Me.Hide
End Sub
Private Sub Command2_Click()
Form3.Show
Me.Hide
End Sub
'Form2代码
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
'Form3代码
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
微测检测5.10
2023-05-10 广告
2023-05-10 广告
您好!建议咨 深圳市微测检测有限公司,已建立起十余个专业实验室,企业通过微测检测就可以获得一站式的测试与认 证解决方案;(EMC、RF、MFi、BQB、QI、USB、安全、锂电池、快充、汽车电子EMC、汽车手机互 联、语音通话质量),认证遇...
点击进入详情页
本回答由微测检测5.10提供
展开全部
窗体一代码:
Private Sub Command1_Click()
Form2.Show
Unload Me
End Sub
Private Sub Command2_Click()
Form3.Show
Unload Me
End Sub
Private Sub Form_Load()
Command1.Caption = "窗体2"
Command2.Caption = "窗体3"
End Sub
窗体二和窗体三代码都是:
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
Private Sub Command1_Click()
Form2.Show
Unload Me
End Sub
Private Sub Command2_Click()
Form3.Show
Unload Me
End Sub
Private Sub Form_Load()
Command1.Caption = "窗体2"
Command2.Caption = "窗体3"
End Sub
窗体二和窗体三代码都是:
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
'Form1
Private Sub Command1_Click()
Form2.Show
Form1.Hide
End Sub
Private Sub Command2_Click()
Form3.Show
Form1.Hide
End Sub
'Form2
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
'Form3
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
Private Sub Command1_Click()
Form2.Show
Form1.Hide
End Sub
Private Sub Command2_Click()
Form3.Show
Form1.Hide
End Sub
'Form2
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
'Form3
Private Sub Form_Unload(Cancel As Integer)
Form1.Show
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询