make A and B MDI children... place them in Form C (specifying top and left) and set moveable = false.
to remove the title bars of A and B: set borderstyle = 0 (none)
Main Topics
Browse All Topicsis it possible to put an already created form into a new form?
i want to combine some programs that i have made. FormA and FormB both need to go onto a big FormC. what would be the best way to do this?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If you want to put everything onto one form the easiest way to do it would be to do this.
Copy the entire project to a new directory.
Open the project
Add a new form and size it large enough to hold what you want to put on it.
Open form A Click Edit Select All (or press Ctrl+A)
Select the new form and press Ctrl+V to paste
and repeat for form B
You will need to copy the code sections as well.
When you have everything you need you can right click on the forms you no longer need in project explorer and select remove.
Here is the Simplest solution:
when u want to open two forms in the vb6.0 simultaneously, open form C first and then on some event ie button click or so. do like this
Make ControlBox of both the Forms false from prperties window.
Make Caption property of FormB blank(empty)
FormA.Left = 0
FormA.Width = Screen.Width/2
FormB.Left = FormA.Width
FormB.width = Screen.Width/2
FormA.show()
FormB.show()
Hello,
you might want to try this (VB6).
Start a new project with 2 forms (Form1 and Form2).
Add this code to a module:
[code]
Public Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long
[/code]
And this to Form1:
[code]
Load Form2
Form2.Show
SetParent Form1.hwnd, Form2.hwnd
[/code]
Greetings,
Black Spider
Business Accounts
Answer for Membership
by: djiangrPosted on 2004-12-20 at 11:08:01ID: 12869411
....so that the other forms are placed on the formC are not movable...kinda like a frame....VB6