Click here to Skip to main content
15,886,035 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
how to open window inside another window frame.i am having a window consist of frame i want to open another window in the frame is it possible or not?give some example.
Posted

Your Form(Window) must be MDI(multiple document interface)

YourForm.IsMdiContainer = True

NewForm.MdiParent = YourForm;
NewForm.Show();
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 24-Jan-13 15:34pm    
This is WPF, not forms. Microsoft did a hard job of phasing out this mistaken UI style, so it's not available in WPF; and you are only trying to do harm of reviving it.
Sorry, I voted 1.
—SA
Urfik 21-May-20 8:06am    
It is not for WPF it is for nWinForms
1. Read all about MDI at http://msdn.microsoft.com/EN-US/library/xyhh2e7e(v=VS.100,d=hv.2).aspx

2. Use Google or Bing search to find samples of MDI to study and learn from.
Following is a link to one example, I found with search key: mdi sample vb.net
www.cas.mcmaster.ca/~se4d03/tutorials/MDIExmpl.pdf

3. Develop a small sample application to help you learn.

4. Ask further clarifying questions by posting code from your sample application.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 24-Jan-13 15:35pm    
This is WPF, not forms. Microsoft did a hard job of phasing out this mistaken UI style, so it's not available in WPF; and you are only trying to do harm of reviving it.
Sorry, I voted 1.
—SA
Don't do it. WPF Windows are not designed like that, thanks goodness. You need to start with thinking about nice UI design.

There are good alternatives. One very simple but quite good one is System.Windows.Controls.TabControl: http://msdn.microsoft.com/en-us/library/system.windows.controls.tabcontrol.aspx[^].

There are many others. Basically, you can have multiple panels in your window. Hide/Show them, move in/out, minimize/maximize, etc.

You can even use the advanced docking interface line in Visual Studio: http://avalondock.codeplex.com/[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900