README.md

December 4, 2022 · View on GitHub

IsLoaded Form Function

Description

This Function checks if a specified Form is loaded

by looping through the forms collection

it returns TRUE if it is and FALSE if it is not

you can decide what you want according to the

return value e.g accessing its properties or methods or controls ,...

More Info

Submitted On
BySaid Sowiny
LevelAdvanced
User Rating2.5 (15 globes from 6 users)
CompatibilityVB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0
CategoryCustom Controls/ Forms/ Menus
WorldVisual Basic
Archive File

Source Code

 

Public Function IsLoaded(ByVal strForm As String)As Boolean

Dim frmloaded As Form

IsLoaded = False

If strForm = "" Then Exit Function

For Each frmloaded In Forms

If frmloaded.Name = strForm Then

IsLoaded = True

Exit Function

End If

Next

End Function