When I close my MDI application I save all forms which are showing so I can have them show again the next time the application is opened.
This, however, does not work because the forms are not loaded and it appears I can only use the above "For Each" loop on loaded forms. Is there a way for me to find all forms in my VB project whether already loaded or not without hard-coding each form name?
thanks
Code:
varUtilitySettings = GetAllSettings(appname:="My Utility", Section:="Open Forms")
For bytCounter = LBound(varUtilitySettings, 1) To UBound(varUtilitySettings, 1)
varUtilitySettings(bytCounter, 1)
For Each objForm In Forms
If objForm.Name = varUtilitySettings(bytCounter, 1) Then
objForm.Show
Exit For
End If
Next 'objForm
Next 'bytCounter
This, however, does not work because the forms are not loaded and it appears I can only use the above "For Each" loop on loaded forms. Is there a way for me to find all forms in my VB project whether already loaded or not without hard-coding each form name?
thanks