Change form within a form

Kevin_S

Registered User.
Local time
Yesterday, 20:01
Joined
Apr 3, 2002
Messages
635
Change form within a form with a twist!

Hey Everybody,

Got a design question thats been buggin me for a while and I'm hoping maybe someone here can help. I have a form (frmTOC) that is the master navigation form for a db I'm developing. The form consists of a large Treeview control and a few other variables that are displayed (like current user, clock, date, etc...). The way the form currently works is that a user selects a form from the treeview to display data pertaining to the selected item (i.e Site Info, Contact Info, etc..) and the corresponding form for the selected record is displayed.

What I want to have happen is that instead of a seperate form that opens I want the form to be connected to the navigation form like a subform to the right of the navigation tree. So, bear with me here, The form is the size of the users screen with the navigation displayed on the left and the right side is blank. The user selects a form in the navigation and the corresponding form is displayed WITHIN THE SAME FORM on the right... kind of like changing in and out forms (as subforms) on the fly... is this possible...?

Thanks In Advance...
Kev
 
Hey Rich -

Thats what I'm doing currently is just using the pop up forms and saving their position on the screen but I have a few issues with this method. For one, the user will be able to reposition the form if they want (which defeats the purpose of positioning it) now I was thinking about positioning the form on startup with a screen coordinate but our users work in a hodge-podge setup where some have smaller monitors, some monitors are set to different screen resolutions, etc... so setting the form coordinate position isn't feasible. Also - Having the forms pop-up allows the user to open more then one form at a time which is something I would prefer to stop from happening...

Thoughts...?

Thanks,
Kev
 
If you have one main form with a subform and a treeview control then it is possible to select the form from the treeview and then change the subform to represent that form.

Just change the subform object's SourceObject property to the name of the new form.
 
Ahhh! SourceObject Property - I will have a look at this and post back with my findings....

Nice one Mile - Thanks :cool:
Kev
 

Users who are viewing this thread

Back
Top Bottom