Beginning Programming with the Visual Studio.NET Environment.

Slides:



Advertisements
Similar presentations
Document Properties: adding information to your Microsoft Office documents Step 1: Add information to Document Properties What are Document Properties.
Advertisements

Developing an Excel Application
Tutorial 8: Developing an Excel Application
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
Interfacing with Computer Associate Degree in Education (ADE) Lecture 04 Sajid Riaz.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Customizing Word Microsoft Office Word 2007 Illustrated Complete.
FIRST COURSE Getting Started with Microsoft Office 2007.
XP 1 Using Common Features of Microsoft Office 2003 Rod Rodrigues.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
C HAPTER 7 Microsoft Windows 7. Part1: Getting Started with Windows7 Fundamentals 7.1 What is Windows 7? It is the latest version of a series of Operating.
Creating a Console Application with Visual Studio
Access Tutorial 10 Automating Tasks with Macros
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
XP New Perspectives on Introducing Microsoft Office XP Tutorial 1 1 Introducing Microsoft Office XP Tutorial 1.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 22 Macros.
CIS—100 Chapter 15—Windows Vista 1. Parts of a Window 2.
IE 411/511: Visual Programming for Industrial Applications
Start Microsoft PowerPoint 1.PowerPoint uses a graphical approach to presentations in the form of slide shows that accompany the oral delivery of the.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 2 Welcome Application Introducing the Visual Basic 2008 Express Edition IDE.
Computing Fundamentals Module Lesson 4 — Using Windows Explorer Computer Literacy BASICS.
Microsoft Office Access 2003 Số tiết: 30 tiết lý thuyết 60 tiết thực hành Giáo viên: Từ thị Xuân Hiền.
Tutorial 111 The Visual Studio.NET Environment The major differences between Visual Basic 6.0 and Visual Basic.NET are the latter’s support for true object-oriented.
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Integrated Development Environment (IDE)
XP New Perspectives on Windows XP Tutorial 1 Exploring the Basics.
Visual Studio.NET Part 2 dbg --- Using the Integrated Development Environment.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
®® Microsoft Windows 7 for Power Users Tutorial 4 Creating and Customizing Shortcuts.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Program Design and Coding
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Instructor’s Guide to Teaching SolidWorks Software Lesson 1 School’s Name Teacher’s Name Date.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Key Applications Module Lesson 21 — Access Essentials
XP New Perspectives on Microsoft Windows 2000 Professional Windows 2000 Tutorial 1 1 Microsoft Windows 2000 Professional Tutorial 1 – Exploring the Basics.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
1 After completing this lesson, you will be able to: Start Access and open an existing database. Move around in Access. Open and close a table. (continued)
MS Access: Introduction 1Database Design. MS Access: Overview MS Access A Database Management System (DBMS) designed to create applications that organize,
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 7 – Creating and Using Templates in a Web.
® Microsoft Office 2010 Exploring the Basics of Microsoft Windows 7.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
Copyright © 2006 Prentice-Hall. All rights reserved.1 Computer Literacy for IC 3 Unit 2: Using Productivity Software Project 1: Taking a Tour of Windows.
Slide 1 Using Menu Bar & Common Dialog Boxes. Slide 2 Setting Up the Main Items v First open the form on which you want the menu located v Then start.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
® Microsoft Office 2010 Exploring the Basics of Microsoft Windows 7.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
®® Microsoft Windows 7 Windows Tutorial 2 Organizing Your Files.
Data-information stored in files on the disks and CDs in your computer system Why should we save a file when we create it on the computer?
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 12 Creating Console Applications, Understanding XML, and Creating Web Services.
Dive Into® Visual Basic 2010 Express
Microsoft Excel 2003 Illustrated Complete
Microsoft Windows 2000 Professional
Macro.
Shelly Cashman: Microsoft Windows 10
Microsoft Windows 7 Basics
Presentation transcript:

Beginning Programming with the Visual Studio.NET Environment

Visual Studio.NET is a tool-rich programming environment containing all the functionality you'll need to create large or small C# projects. Visual Studio.NET is a tool-rich programming environment containing all the functionality you'll need to create large or small C# projects. (You can even create projects that seamlessly combine modules from different languages.) (You can even create projects that seamlessly combine modules from different languages.)

In the first exercise, you'll start the Visual Studio.NET programming environment and learn how to create a console application. In the first exercise, you'll start the Visual Studio.NET programming environment and learn how to create a console application.

In the Project Types pane, click the Visual C# Projects folder. In the Project Types pane, click the Visual C# Projects folder. In the Templates pane, click the Console Application icon. (You might need to use the Templates pane scrollbar to reveal this icon.) In the Templates pane, click the Console Application icon. (You might need to use the Templates pane scrollbar to reveal this icon.) In the Location field, type C:\Visual C# Step by Step\Chapter 1. In the Location field, type C:\Visual C# Step by Step\Chapter 1. In the Name field, type TextHello. In the Name field, type TextHello. Click OK. The new project opens. Click OK. The new project opens.

The menu bar provides access to the commands you'll use in the programming environment. You can use the keyboard or the mouse to access the menus and commands exactly as you can in all Windows-based programs. The menu bar provides access to the commands you'll use in the programming environment. You can use the keyboard or the mouse to access the menus and commands exactly as you can in all Windows-based programs. The toolbar is located beneath the menu bar and provides button shortcuts to run the most frequently used commands The toolbar is located beneath the menu bar and provides button shortcuts to run the most frequently used commands

The Code pane displays the source files. In a multi- file project, each source file has its own tab labeled with the name of the source file. You can click the tab once to bring the named source file to the foreground in the Code pane. The Code pane displays the source files. In a multi- file project, each source file has its own tab labeled with the name of the source file. You can click the tab once to bring the named source file to the foreground in the Code pane. The Solution Explorer displays the names of the files associated with the project. You can also double-click a filename in the Solution Explorer to bring that source file to the foreground in the Code pane. The Solution Explorer displays the names of the files associated with the project. You can also double-click a filename in the Solution Explorer to bring that source file to the foreground in the Code pane.

The Output pane lists the diagnostic messages generated from build commands. The Output pane lists the diagnostic messages generated from build commands.

Before writing the code, examine the files listed in the Solution Explorer that Visual Studio.NET has created as part of your project: Before writing the code, examine the files listed in the Solution Explorer that Visual Studio.NET has created as part of your project: TextHello.slnThis is the top-level solution file, of which there is one per application. Each solution file contains one or more project files. In the file system, each solution file has the extension.sln. In the Solution Explorer, it appears with a name that is easier to read, such as "Solution ‘TextHello'" in this project. TextHello.slnThis is the top-level solution file, of which there is one per application. Each solution file contains one or more project files. In the file system, each solution file has the extension.sln. In the Solution Explorer, it appears with a name that is easier to read, such as "Solution ‘TextHello'" in this project. TextHello.csprojThis is a C# project file. Each project file contains one or more source files. The source files in a single project must be written in the same programming language. This file type is displayed in the Solution Explorer using only the project's name; however, it is stored on the file system with the extension.csproj. TextHello.csprojThis is a C# project file. Each project file contains one or more source files. The source files in a single project must be written in the same programming language. This file type is displayed in the Solution Explorer using only the project's name; however, it is stored on the file system with the extension.csproj. Class1.csThis is a C# source file. You will write your code in this file. It contains some code that Visual Studio.NET provides automatically, which you will examine shortly. Class1.csThis is a C# source file. You will write your code in this file. It contains some code that Visual Studio.NET provides automatically, which you will examine shortly. AssemblyInfo.csThis is another C# source file. You can use this file to add attributes to your program, such as the name of the author, the date the program was written, and so on. There are other more advanced attributes you can use to modify the way in which the program will run. AssemblyInfo.csThis is another C# source file. You can use this file to add attributes to your program, such as the name of the author, the date the program was written, and so on. There are other more advanced attributes you can use to modify the way in which the program will run. App.icoThis is the icon that is associated with the application. All Windows applications that have a user interface have an icon that appears minimized on the taskbar when the application is running. App.icoThis is the icon that is associated with the application. All Windows applications that have a user interface have an icon that appears minimized on the taskbar when the application is running.

Create a console application in Visual Studio.NET In Microsoft Windows, click the Start button, point to All Programs, and then point to Microsoft Visual Studio.NET In Microsoft Windows, click the Start button, point to All Programs, and then point to Microsoft Visual Studio.NET Click the Microsoft Visual Studio.NET 2003 icon. Visual Studio.NET starts. Click the Microsoft Visual Studio.NET 2003 icon. Visual Studio.NET starts. On the File menu, point to New, and then click Project. The New Project dialog box opens. This dialog box allows you to create a new project using various templates such as Windows Application, Class Library, and Console Application that specify the type of application you want to create. On the File menu, point to New, and then click Project. The New Project dialog box opens. This dialog box allows you to create a new project using various templates such as Windows Application, Class Library, and Console Application that specify the type of application you want to create.

Writing Your First Program The Class1.cs file defines a class called Class1 that contains a method called Main. All methods must be defined inside a class. The Main method is special—it designates the program's entry point. It must be a static method. The Class1.cs file defines a class called Class1 that contains a method called Main. All methods must be defined inside a class. The Main method is special—it designates the program's entry point. It must be a static method. Write the code using IntelliSense technology Write the code using IntelliSense technology