Click to See Complete Forum and Search --> : Help: how to build an explorer-style app with .NET IDE(Form-based not MFC)?


frank28_nfls
April 28th, 2005, 07:40 AM
Hi,

i posted this in vc++ forum, maybe i was wrong. now i post it here, any suggestion will be welcome.

I just want to build an explorer-style application. With MFC, I use the wizard, and choice directly "explorer-style", and add separately some "FormView" for every different view in my right-side of application, and in every "FormView", I designe as I wish. LeftView is created by the wizard, and I edit it to make connection betwen every item in left and different view in right.

Now, I want to do the same but with Windows Form Designer. I create a single Form as the main window, and I add a TreeView in left and add different items. My problem is how to do the same thing as "add FormView" like in MFC. After I add some Forms and designe them, I cannot make them show in the main-form because the Form in a Form-based app, presents a top-level window, but in a Form, we can only add the controls. So I want to know what the equal to the "FormView" in Windows Form? At present, my solution is that I create a Panel in every separate form, and I put the controls in it, and add the Panels to the main-form. Yes this cannot be right, and so I wait your suggestions.

Thanks~~

By the way, another small question: as I see in C# that we can add a Form inherited form another Form directely, but why I cannot find this function in VC.NET?

lior6543
April 29th, 2005, 02:37 PM
there's the thing: the answer to your problem is very simple.
all you have to do is change the main form properties. in the window-style section set "IsMdiContainer"
to TRUE.

that's it.
hope i unserstand you correctly.