gpt4 book ai didi

vb.net - 如何关闭所有表格?

转载 作者:行者123 更新时间:2023-12-04 04:43:27 24 4
gpt4 key购买 nike

日志文件

Public Class log
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "bassam" And TextBox2.Text = "bassam" Then
Me.Hide()
msgbox1.Show()
Else
Me.Dispose()
End If
End Sub
End Class

msbox1.vb
Public Class msgbox1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
End Class

形式为 msgbox1 ,我想关闭表单 log当我按 Button1 ,但它只是关闭 msgbox1 .如何关闭所有表格?

最佳答案

如果您想关闭整个应用程序,只需调用 Application.Exit() .

关于vb.net - 如何关闭所有表格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18562352/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com