test if form is open vb code example Example: test if form is open vb Imports System.Linq If Application.OpenForms().OfType(Of MyForm).Any Then