Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: Is a MDIChild form visible yes/on ?


Message #1 by "svdkooij" <svdkooij@c...> on Fri, 20 Jul 2001 09:20:33
Hello,
Try this code.

    Dim Ctl
    For Each Ctl In Forms
        MsgBox Ctl.Name
    Next

You can get all the forms which are currently loaded (in memory). (whether
they are active or inactive).

Gaurav Shah
(Sr. Software Engineer)
Gates Information Systems Pvt. Ltd.

----- Original Message -----
From: "svdkooij" <svdkooij@c...>
To: "professional vb" <pro_vb@p...>
Sent: Friday, July 20,2001 9:20:AM
Subject: [pro_vb] Is a MDIChild form visible yes/on ?


> Dear Guruus
>
> Im my project i have a couple of MdiChild forms.
> In one of the childforms I need 2 check if a sertain other form
> (frmChild1) is visible.
>
> ' Piece of the Code:
> If frmChild1.Visible = True Then
>    ' Do Something
> End If
>
> But when vb6 executes this part, frmChild1 becomes visible anyway. That is
> not what I want. Is there a way to do this.
>
> Regards.
> Sander
>
>


  Return to Index