As suggested by Megatron in
http://forums.vb-world.net/showthrea...threadid=57651
To set form2 to as a child form of picture1, Use
Now Supposed I have set form2, form3 and form4 as child window of picture1. Latter on I would like to identify which child form is currently displayed one. Any suggestion?Code:Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long Private Sub Form_Load() Form2.Show SetParent Form2.hWnd, Picture1.hWnd End Sub
Thanks for help