borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (vb code for logitech webcam)Next Topic (Effect on loading form) New Topic New Poll Post Reply
AndreaVB Forum : VB General : MDI Child forms
Poster Message
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681

icon MDI Child forms  Archived to Disk

Hello. I have got couple of questions. How can I determine which MDI Child form is loaded, which worm has focus and which form will get focus after current form is unloaded? Can you check a form property without a form being loaded(property Visible for instance?)? Also would like to know if there is an API function as a substitute for POINT metod?

____________________________
If you find the answer helpful, please mark this topic as solved.

31-05-2002 at 12:32 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon MDI Child forms  Archived to Disk

I have found the API substitute for POINT metod - Get Pixel API

____________________________
If you find the answer helpful, please mark this topic as solved.

31-05-2002 at 02:50 PM
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: MDI Child forms  Archived to Disk

Active form:
     MDIForm1.ActiveForm.Name

All Forms (child and non)
    Dim Form As Form
    
    For Each Form In Forms
        If Form.Name <> Me.Name Then
            MsgBox Form.Name
        End If
    Next

31-05-2002 at 03:10 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
GPA
Level: Guest

icon Re: MDI Child forms  Archived to Disk

You can't check if a form is loaded by using the visible property. When doing so, the form is loaded implicitly and the visible property is always false.
Use JLRodgers's answer instead to see if a form IsLoaded.

Grtz
Guus

11-06-2002 at 08:00 AM
| Quote Reply
AndreaVB Forum : VB General : MDI Child forms
Previous Topic (vb code for logitech webcam)Next Topic (Effect on loading form) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder