Chapter Outline Install Visual studio 2008 Visual Studio Environment Menu Bar and Toolbar Visual Studio .NET IDE Windows Solution Explorer Toolbox Properties Window Using Help
Install Visual Studio IDE • Download Visual studio IDE from the internet. • Opening Setup.exe 1- double click “Install Visual Studio 2008.”
Install Visual Studio IDE Cont. 2- Review and accept license terms. 3- confirm that the Registration key and computer name are entered correctly. Click Next.
Install Visual Studio IDE Cont. 4- Select the Custom radio button, and then ensure that the Product installation path is optimal. Then Click Next
Install Visual Studio IDE Cont. 5- Make sure C# is checked, and ensure that you have enough space on your computer to complete the install. Then Click install.
Install Visual Studio IDE Cont. Visual Studio 2008 will begin its installation on your computer!
Overview of the VS.NET IDE Single IDE for all Languages. Server Explorer Event Viewer, Message Queues, Services SQL Databases, Data Connection, Etc. Integrated IE Browser HTML/XML Editors Dynamic Help Common Forms Editor VB.NET, C++, and C# …………..
Overview of the VS.NET IDE • User creates a new project in Visual Studio • A solution and a folder are created at the same time with the same name as the project • The project belongs to the solution • Multiple projects can be included in a solution • Solution • Contains several folders that define an application’s structure • Solution files have a file suffix of .sln • Project: contains files for a part of the solution • Project file is used to create an executable application • Every project has a type (Console, Windows, etc.) • Every project has an entry point: A Sub procedure named Main or a Form
Recent Projects Getting start (Help) Compilation error and warning
Create New project Select project type Select programming language in our case (visual C#) Project name and there location
By default, the Visual Studio .NET IDE assigns the name WindowsApplication1 to the new project and solution. The Visual Studio Projects folder in the My Documents folder is the default folder referenced when Visual Studio .NET is executed for the first time. Programmers can change both the name of the project and the location where it is created. Overview of the Visual Studio .NET IDE
1- Menu Bar and toolbar 4- Solution explorer 3- Properties 2- Tool Box
1- Menu Bar and toolbar • The IDE provides windows for accessing project files and customizing controls. • These windows can be accessed via the toolbar icons or by selecting the name of the desired window in the View menu.
2- Toolbox The Toolbox window contains controls used to customize forms. Programmers can “drag and drop” controls onto the form.
3- Properties The Properties window displays the properties for a form or control. Properties specify information such as size, color and position. Properties Properties Value
3- Properties Cont We called this properties label1
3- Properties Cont We called this properties of button1
Execute Program • You can execute program using toolbar icon • When Visual Studio .NET begins execution, the Start Page displays
Using Help The Help menu contains a variety of commands, which are summarized in the following table.
In C# .NET the code you create is organized using different layers of grouping : Solutions : contain one or more projects. Projects : contain more than one file. Files. Conclusion
Solution Explorer : provides access to all the files in a solution. ToolBox : contains controls used to customize forms. Properties Window : displays the properties for a form or a control. Conclusion