Some architectural advice on various methods of using WinForms

Posted on 2008-11-13
Last Modified: 2013-12-17
I am reviewing my own code to see where I could have done things better.  I have built many dialogs which get an object passed in as a parameter, to the contructor.  Then in the Load function, I assign values to the various controls by accessing properties on the object.  Once the user closes the dialog, I read the contents of the control then pass the values to the properties of the object.

Using standard .NET Framework 2.0, what better ways are there for this interrelationship to exist?

How about .NET Framework 3.5?

And lastly, wouldn't the MVC Framework change this relationship fundamentally?  How does one use the MVC Framework with Windows, and would it still be with WinForms?  Is MFP a better choice with MVC?

Thanks for the help.  I'm trying to upgrade my skills to try and keep up with Microsoft!

Question by:newbieweb
    LVL 7

    Assisted Solution

    Dude ytou are asking questions that require ansers that are far t long to be published in a forum such as this one.  I suggest that google for articles on the MVC and MVP patterns to get to understand the evolution from MVC to MVP.  I have however found the acronym MVC is very often being ued to refer to the MVP pattern.

    Remember that MVC is a pattern and is equally applicable to windows or  As far as I know (I am not a web developer) the MVC Framework is Framwork developed to be used with

    Their is however a site that promotes the use of one framework that can be used in and winform apps.  It has the added bonus (or not depending on who you ask) tat introduces some workflow type of functionality to the pattern.  Check out the link:
    LVL 96

    Accepted Solution

    Where to start...

    Hmmm...MVC with Windows forms...

    1) Define a Form as a view with controls

    2) Define as a "model" for the "real world" case.

    3) Define a controller class that understands both the View and the Model.  It will attach to events in the View, and update the model, and attach to events in the model to update the view.

    Simplified approach.

    Author Comment


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
    This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now