?
Solved

I need a .net version of vb6 isloaded

Posted on 2008-11-19
8
Medium Priority
?
312 Views
Last Modified: 2013-11-26
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
0
Comment
Question by:JDL129
  • 4
  • 4
8 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 23001861
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
 

Author Comment

by:JDL129
ID: 23006724
jpaulino,

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

Thanks,

Jerry
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 23008526
>> OpenForms is not in the drop down after I click the dot after Application
Sorry, don't understand what you mean with this!
 
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 

Author Comment

by:JDL129
ID: 23009214
jpaulino:

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

Thanks for the response!!

Jerry
0
 

Author Comment

by:JDL129
ID: 23058416
No correct answer...Question should be closed
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 23059245
>> 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
 

Author Closing Comment

by:JDL129
ID: 31518565
My appologies jpaulino!!!  Your solution worked great!!  Sorry it took me so long to get around to award points.
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 23093356
No problem :)
Glad I could help!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month16 days, 7 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question