VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



This function enables you to identify whether a form is loaded at runtime. It returns a boolean val

by Issa Fahmy (7 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Originally Published: Wed 15th August 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

This function enables you to identify whether a form is loaded at runtime. It returns a boolean value to specify whether the form passed as a

Rate This function enables you to identify whether a form is loaded at runtime. It returns a boolean val



    'Declare variable to specify form index
    Dim intNoForms As Integer
    'Initialize Boolean Value to False
    IsLoaded = False
    'Loop through all loaded forms to check whether form of interest is loaded
    For intNoForms = 0 To Forms.Count - 1
        'If specified form is loaded then return true
        If Forms(intNoForms).Name = frm Then IsLoaded = True: Exit Function
    Next intNoForms
End Function

Download this snippet    Add to My Saved Code

This function enables you to identify whether a form is loaded at runtime. It returns a boolean val Comments

No comments have been posted about This function enables you to identify whether a form is loaded at runtime. It returns a boolean val. Why not be the first to post a comment about This function enables you to identify whether a form is loaded at runtime. It returns a boolean val.

Post your comment

Subject:
Message:
0/1000 characters