Sunday, 4 January 2015

Windows Application


        Windows Forms is a set of managed libraries in .NET Framework designed to develop rich client applications. It is a graphical API to display data and manage user interactions with easier deployment and better security in client applications. 


Windows Forms offers an extensive client library providing interface to access native Windows graphical interface elements and graphics from managed code. 
         It is built with event-driven architecture similar to Windows clients and hence, its applications wait for user input for its execution. 
Windows Forms is similar to Microsoft Foundation Class (MFC) library in developing client applications.         It provides a wrapper consisting of a set of C++ classes for development of Windows applications. However, it does not provide a default application framework like the MFC.

  • Windows Forms classes can be extended, using inheritance, to design an application framework that can provide high level of abstraction and code reusability.
  • Forms should be compact, with controls on it limited to a size that can offer minimum functionality. Additionally, the creation and removal of controls dynamically can reduce the number of static controls.
  • Forms can be broken into chunks packaged in assemblies that can automatically update itself and can be easily managed with minimal effort.
  • Designing the application to be stateless provides scalability and flexibility with ease for debugging and maintenance.
  • Windows Forms applications should be designed based on the level of trust required, the need to request for permissions, and handle security exceptions wherever necessary.
  • Windows Form cannot be passed across application domain boundary since they are not designed to be marshaled across application domains.

No comments:

Post a Comment