Results 1 to 4 of 4

Thread: loaded form

  1. #1

    Thread Starter
    Addicted Member eanilarora's Avatar
    Join Date
    Aug 2000
    Location
    Malaysia
    Posts
    179

    loaded form

    Hi Guys (oops !! 'n Gals)

    Is there is a way to know if a form is currently loaded in memory.

    something like
    VB Code:
    1. if isloaded(frmMain) then
    2.     Unload frmMain
    3. endif

    All Smiles

    Anil
    Love, Live, Laugh

  2. #2
    khalik
    Guest
    VB Code:
    1. Private Sub cmd_Click()
    2.    
    3.     Dim frm As Form
    4.     For Each frm In Forms
    5.         If frm.caption <> "welcome" Then
    6.             msgbox "Form welcome Found"
    7.         End If
    8.     Next frm
    9. End Sub

  3. #3
    Megatron
    Guest
    Check the Name property instead. It's less likely to be changed.

  4. #4
    khalik
    Guest
    u can use the tag , name caption properties this was just to give u a idea...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width