vb.net如何查找打开的窗口
发布网友
发布时间:2022-08-22 13:16
我来回答
共1个回答
热心网友
时间:2024-08-30 15:16
将NewForm设置为全局变量就可以了,如果新建窗口比较多,就设置为数组,例如:
Public Class Form1
Dim NewForm(10) As Form
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
NewForm(0) = New Form
NewForm(0).Show()
End Sub
End Class