Forms within forms

I was wondering if  you could create forms with in other forms... but make it appear as if it was really one form (not allowing the user to resize, minimise, maximise the subform) ... allowing me to change subforms with in the main form easily..
nguyenngoAsked:
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.

BeedleGuisCommented:
would the purpose of this be to just display different controls and/or information?
0
BeedleGuisCommented:
you could use a mdi form as the parent, and set the maximize, minimize properties of the child forms to false. Also set the child forms Border style to fixed
0
y2kwackoCommented:
Another method would be to put a picture box on the parent form, set the maximize,minimize properties on child to false as well as borderstyle to fixed single or fixed double for a 3d look, then you can go about doing it using the setparent API call.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

BeedleGuisCommented:
if you are just changing visible controls then you could just set the tag properties for each control as form1, form2 and so on.  Then when you want to show the form 1 controls just execute the following:

dim ctrl as control
for each control in form1.controls
    Select case ctrl.tag
        Case "Form1"
            ctrl.visible=true
        case "Form2"
            ctrl.visisble=false
    End Select
next ctrl

and similar for the other forms
0

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
nguyenngoAuthor Commented:
I need to switch between a set of many forms, which have a number of controls on them... also the forms should always be maximised and be resized when the parent is resized...
0
BeedleGuisCommented:
can you use a mdiform for the parent and just set all the child forms to start maximized, with the controlbox set to flase? also make sure mdichild is set true for all the child forms.
0
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.