tes jika formulir terbuka VB

Imports System.Linq


If Application.OpenForms().OfType(Of MyForm).Any Then
Salty Joe