Monday 18 March 2013

Windows Programming

     In development of any application we need a user interface(UI) to communicate with the end users where UI's are of 2 types
  • Character User Interface  (CUI)
  • Graphical User Interface (GUI)
     Traditionally we have only CUI. Ex Dos,UNIX,etc. where these application suffers from 2 criticisms like they are not user friendly because we need to learn the commands first to use them. They donot alow to navigate from one place to another
     To solve these problems in early 90's GUI applications were introduced by Microsoft with its windows OS which has a beautiful feature known as look and feel.
     To develop GUI's Microsoft has provided a language also in 90's only ie Visual Basic. Later when .net was introduced the support for GUI has been given in all .net languages.

Developing GUI's
     To develop a GUI we need some special components known as controls which are provided in .net languages in classes in System.Windows.form namespace. All control's which are present under this namespace were grouped into different categories
  • Common Controls
  • Container Controls
  • Menu and Toolbar Controls
  • Dialog Controls
  • Reporting Controls
  • Printing Controls
  • Data Controls
Whatever the control is, every control has 3 things in common
  • Properties: These are attributes of the control which have their impact on look of the control. Ex: Width, Height, Back-color, Fore-color etc.
  • Methods: These are actions performed by the control.  Ex: Clear(), Focus(), Close() etc.
  • Events: These are time periods which specifies when an action has to be performed. Ex: Click, Load, Keypress, MouseOver etc

No comments:

Post a Comment