MDI Form

I want to create a mdi form and 5 MDI Child Form,All MDI Form should open in parent and minimize also in that window. Can anyone help please?
sanjay_nanawatiAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

danaseamanCommented:
sanjay_nanawatiAuthor Commented:
i mean when i click minimize button ,it should minimize in parent form. i am giving the codes i am using.
 Public Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As  Long) As Long
 In form_load
SetParent hWnd, MDIFormMain.hWnd
danaseamanCommented:
The Child Forms are minimizing in MDI Parent Form when minimize button is clicked:

http://www.mediafire.com/file/3yyn4mmzrty/5Child.zip

sanjay_nanawatiAuthor Commented:
see, I have a mdi application. On parent MDI I put a picture box which cover the whole Form . In the center of picture box I put a frame and three command (create, select and exit) in the frame. By clicking the create and select cmd. two child form appears on the parentmdi . now the problem is when i minimize these child form , they just disappear in leftbottom side of the screen . It seems that they goes under the picture box , I want them on the picture box, but don't know how
danaseamanCommented:
It is not uncommon to have a PictureBox on the MDI Form that is either TopAlign of LeftAlign and uses about 10% of the MDI Form area.
The remaining area can display the child forms in Cascade, Horiz, or Vert align, or minimized to the bottom of the MDI Form.

By filling the entire form with a PictureBox you have left no room for the child Forms. When they are minimized I don't think they are behind the PictureBox, rather you haven't left any space between PictureBox and bottom of MDI Form.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.