Hi i want a sample project on MDI . Plzzz help me

Dani AI

Generated

requested a sample MDI project and suggested searching SourceForge. A quick clarification first: "MDI" normally refers to a Windows desktop pattern (WinForms), not an ASP.NET web pattern. For ASP.NET, Master Pages / Layouts or a tabbed/SPAs approach is the appropriate equivalent; attempting a true MDI in a web app is usually the wrong tool.

For a minimal VB.NET WinForms MDI sample (fast to build in Visual Studio):

  • Create a Windows Forms Application (VB).
  • Set the main form's IsMdiContainer property to True.
  • Add a MenuStrip with commands such as File->New and Window->Cascade/Tile.
  • In the New command handler create the child form, assign MdiParent, then call Show.
Dim child As New Form2()
child.MdiParent = Me
child.Show()

Use Me.LayoutMdi(MdiLayout.TileVertical) (or TileHorizontal, Cascade) to arrange children. To get an automatic list of open windows, set the MenuStrip's MdiWindowListItem to the ToolStripMenuItem that represents the Window menu. Common pitfalls: calling ShowDialog makes a modal dialog (not an MDI child); keep the menu on the parent; check that child creation sets MdiParent before showing.

Note: MDI is a legacy desktop UI. For modern desktop UX consider tabbed or docking libraries; for web projects prefer Master Pages/Layout and front-end tabbing or SPA frameworks. Searching modern repositories (GitHub) or Microsoft documentation will usually give up-to-date, ready-to-run examples, whereas older hosts may contain dated samples.

Recommended Answers

All 2 Replies

Thanks dr

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.