Click here to Skip to main content
15,885,435 members
Articles / Desktop Programming / Windows Forms

Evolving Windows Forms Event Handling With Loosely Coupled Methods

Rate me:
Please Sign up or sign in to vote.
4.65/5 (10 votes)
15 Jun 2011CPOL3 min read 30.9K   502   17  
Reduce the exposure of OwnerObject members or resources by interfacing methods to child or sibling objects.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace FormEventsTests
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main ( )
        {
            Application.EnableVisualStyles ( );
            Application.SetCompatibleTextRenderingDefault ( false );
            Application.Run ( new Form1 ( ) );
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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


Written By
Business Analyst
United States United States
Born and raised in Texas. I have been involved in programming since the early days of the Apple II - AppleSoft Basic and assembly were the two languages back then. Since then, I have watched technology evolve; I have watched the languages evolve. Over the last 5 years, I have been programming in .Net, specifically C#.

I am currently employed as a software engineer in San Diego, CA.

Comments and Discussions