Creating a subform within a main form

Jerry Warra picture Jerry Warra · Oct 2, 2013 · Viewed 18.3k times · Source

I'm trying to mimic an access form where I have a subform embedded within a main form. The subform will be populated by a query based on the main form id. When the record changes the subform data will change. Is this possible to do in c#?

I tried looking for a data repeater but the only one I found was a VisualBasic.PowerPacks data repeater.

This is a very important app and the lead wants it to look and act just like the access app. I know that doesn't make sense but that is what he wants.

Any help pointing me in the right direction will be greatly appreciated.

Answer

Habib picture Habib · Oct 2, 2013

What you are looking for is Multiple-Document Interface (MDI) Applications. With WinForm .Net framework provides MDI forms. You should see: How to: Create MDI Child Forms - MSDN.

You may also see: Introduction to MDI Forms with C# - Code project