AllApi.net

[an error occurred while processing this directive]
 
'This program needs a form, a MDIForm, named MDIForm1.
Private Declare Function IsChild Lib "user32" (ByVal hWndParent As Long, ByVal hwnd As Long) As Long
Private Sub Form_Load()
    'KPD-Team 1998
    'URL: http://www.allapi.net/
    'E-Mail: KPDTeam@Allapi.net
    'Is this form a child?
    If IsChild(MDIForm1.hwnd, Me.hwnd) = 1 Then
        MsgBox "This form is a child", vbInformation + vbOKOnly, App.Title
    Else
        MsgBox "This form is not a child", vbInformation + vbOKOnly, App.Title
    End If
End Sub


 
Copyright © 1998-2000, The KPD-Team.
Send mail to KPDTeam@Allapi.net with comments about this web site.
This site is located at
http://www.Allapi.net/