I need a .net version of vb6 isloaded

Is there a function out there for VB.net to determine whether or not a particular form is loaded.  VB6 had an isloaded function.  Anything comparable?

Thanks in advance,

Jerry
JDL129Asked:
Who is Participating?
 
Jorge PaulinoConnect With a Mentor IT Pro/DeveloperCommented:
Try this:

        Dim frm As Form = My.Application.OpenForms("Form2")
        If frm IsNot Nothing Then
            Debug.WriteLine("The form is loaded")
        End If

Open in new window

0
 
JDL129Author Commented:
jpaulino,

Thanks for the post!!
OpenForms is not in the drop down after I click the dot after Application.  Any ideas?

Thanks,

Jerry
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
>> OpenForms is not in the drop down after I click the dot after Application
Sorry, don't understand what you mean with this!
 
0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
JDL129Author Commented:
jpaulino:

Sorry for the confusion!!  OpenForms is not in the My.Application.intellisense.

Thanks for the response!!

Jerry
0
 
JDL129Author Commented:
No correct answer...Question should be closed
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
>> No correct answer...Question should be closed You can close it yourself but the answer is correct. Can you tell if it's available on My.Application ?
0
 
JDL129Author Commented:
My appologies jpaulino!!!  Your solution worked great!!  Sorry it took me so long to get around to award points.
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
No problem :)
Glad I could help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.