CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: form

  1. #1
    Join Date
    Jul 2000
    Posts
    124

    form

    How can I tell if a form is loaded?

    Thanks!
    Erica


  2. #2
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: form

    if not formname is nothing then 'it's loaded somewhere

    end if


  3. #3
    Join Date
    Jul 2000
    Posts
    124

    Re: form

    When your using an MDI form does it automatically load all its forms? That statement that you gave me won't work...


  4. #4
    Join Date
    Sep 1999
    Posts
    202

    Re: form

    public Function FormIsLoaded(frmName as string) as Boolean
    Dim i as Integer

    for i = 0 to Forms.Count - 1
    If Forms(i).Name = frmName then
    FormIsLoaded = true
    Exit Function
    End If
    next
    End Function






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

Featured