Windows Forms Application

  • A windows application is a collection of "windows forms".
  • Windows Forms Applications will provide complete GUI facilities
  • In Windows Forms Applications we can work with all controls like Text Box, Button, Radio Button, List Box etc
  • Using Windows Forms Applications we can design very good, easy and user friendly applications
GUI:-
graphical user interface (GUI, pronounced 'Jee-You-Aye') is a type of user interface that allows users to interact with electronic devices using images rather than text commands. GUIs can be used in computers, hand-held devices such as MP3 players, portable media players or gaming devices, household appliances, office, and industry equipment. A GUI represents the information and actions available to a user through graphical icons and visual indicators such as secondary notation, as opposed to text-based interfaces, typed command labels or text navigation. The actions are usually performed through direct manipulation of the graphical elements.


Creating a Windows Forms Application:


1)    Click on File

2)    Click on New

3)    Click on project

4)    Select Visual C# 




5)    Select Windows Forms Application Template

6)    Type the Application Name [WABasics]

7)    Choose the location to save [Select Browse]

8)    Click on Ok




9)    This will creates A New Windows Forms Application with the Name WABasics

10)  By Default it will shows Form1.cs[Design]





11)  To view Form1.cs Double Click on Form1.cs  in Solution Explorer or Goto view  Click on Code 




12)  To view Form1.Designer.cs Double Click on Form1.Designer.cs in Solution Explorer





IDE (Integrated Development Environment):

  • An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger.
  • Some IDEs contain a compiler, interpreter, or both, such as Microsoft Visual Studio
  • Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop console and graphical user interface applications along with Windows Forms applications, web sites, web applications, and web services in both native code together with managed code for all platforms supported by Microsoft Windows, Windows Mobile, Windows CE, .NET Framework, .NET Compact Framework and Microsoft Silverlight it can also develop windows presentation foundation(WPF) application.
  • This contains various components like

1) Solution Explorer

In Visual Studio parlance, a solution is a set of code files and other resources that are used to build an application. The files in a solution are arranged hierarchically, which might or might not reflect the organization in the file system. The Solution Explorer is used to manage and browse the files in a solution.




2) Tool box
  • The Toolbox displays icons for controls and other items that you can add to Visual Studio projects. To open the Toolbox, click Toolbox on the View menu. You can dock the Toolbox, and you can pin it open or set it to Auto Hide. 
  • Every Toolbox icon can be dragged to a design view or pasted in a code editor in the Visual Studio integrated development environment (IDE). Either action adds the fundamental code to create an instance of the Toolbox item in the active project file.
  • The Toolbox only displays items appropriate to the type of file you are working in. You can search within the Toolbox to further filter the items that appear. If your project requires a control that is not supported by the Client Profile, you can set your project to target the entire framework by editing the project properties.



3) Server Explorer


 The Server Explorer tool is used to manage database connections on an accessible   computer. It is also used to browse running Windows Services, performance counters, Windows Event Log and message queues and use them as a data source


4) Properties Editor

The Properties Editor tool is used to edit properties in a GUI pane inside Visual Studio. It lists all available properties (both read-only and those which can be set) for all objects including classes, forms, web pages and other items.


5)  Output window


The Output window can display status messages for various features in the integrated development environment (IDE). To open the Output window, on the menu bar, choose View/Output (or click CTRL + ALT + O).





iew/Output (or click CTRL + ALT + O).
6)  Error List Window  ….
  • Error List helps you speed application development. In the Error List                    window, you can:
  • Display the Errors, Warnings, and Messages produced as you edit and compile code.
  • Find syntax errors noted by IntelliSense.      
  • Find deployment errors, certain Static Analysis errors, and errors detected while applying Enterprise Template policies.
  • Double-click any error message entry to open the file where the problem occurs, and move to the error location.
  • Filter which entries are displayed, and which columns of information appear for each entry.
  • To display the Error List, on the View menu choose Error List.


 

No comments:

Post a Comment