Answers for "check if form is opened"

0

check if form is opened

Imports System.Linq ' need to add 


If Application.OpenForms().OfType(Of Form2).Any Then
  MessageBox.Show("Opened")
Else
  Dim f2 As New Form2
  f2.Text = "form2"
  f2.Show()
End If
Posted by: Guest on October-05-2021

Code answers related to "check if form is opened"

Browse Popular Code Answers by Language