Ce projet nécessite 1 form, 1 MDIForm, nommée MDIForm1.

Private Declare Function IsChild Lib "user32" (ByVal hWndParent As Long, ByVal hwnd As Long) As Long
Private Sub Form_Load()
'VbAndJava 1999/2000
'Guerrault Yonni
'E-Mail : Yonni4@iFrance.com
If IsChild(MDIForm1.hwnd, Me.hwnd) = 1 Then
MsgBox "Cette feuille est un enfant", vbInformation + vbOKOnly, App.Title
Else
MsgBox "Cette feuille n' est pas une feuille enfant", vbInformation + vbOKOnly, App.Title
End If
End Sub