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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jorge PaulinoIT 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.