Monday, March 31, 2014

Windows Forms Applications


Windows Forms Applications

C# supports two kinds of User Interfaces.

C.U.I (Character User Interface)
Character User Interface
  1. This user interface supports a blank screen, with some characters only.
  2. It is not attractive for the user. That‘s why it is not suitable for the live projects.
G.U.I (Graphical User Interface)
Graphical User Interface
  1. It supports graphical components like windows, icons, mouse pointer, toolbars, status bars, buttons etc.
  2. It is attractive for the user. That‘s why it is suitable for the live projects.
  3. Almost all the software‘s you are using today like Notepad, WordPad, Paint, MS Word, My computer and My documents etc., are the GUI applications.
Windows Forms Application:
Window Application
  1. It can also be called as Windows Application.
  2. It‘s a collection of windows forms.


Form:
Window Form Application
  1. The graphical container, which can contain the graphical controls like labels, textboxes, buttons, list boxes etc., is called as Form. It acts as container for the controls.
  2. It is also called as a window.
  3. It has the visual appearance with a title bar, icon, control box (with minimize button, maximize button and close button)
Creating a “Windows Forms Application” project:
Creating Window Form Project
Create Window Form
  1. Open Microsoft Visual Studio 2010.
  2. Click on ―> File ―> New ―> Project.
  3. Select the language as Visual C#.
  4. Select the project type as Windows Forms Application.
  5. Enter the name and location of the project.
  6. Click on OK.
  7. Then it will create a windows forms application, along with a form, named Form1.
  8. Then the screen looks like this:

No comments:

Post a Comment

Flag Counter