Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB.NET
Expertise: Beginner
Dec 4, 2006

An Easy Way to Find All Open Forms in VB.NET

It's really simple to determine whether a form is open—simply use My.Application and My.Forms in .NET:

            Dim frm As Form

            For Each frm In My.Application.OpenForms

                If frm Is My.Forms.TheFormINeed Then
                  'do something
                end if

Note: This tip only works in .NET 2.0 (VS 2005).

Danette Cross
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap