 2006 Pearson Education, Inc. All rights reserved. 1 2 2 Introduction to the Visual C# 2005 Express Edition IDE.

Slides:



Advertisements
Similar presentations
Chapter 1: An Introduction to Visual Basic 2012
Advertisements

Using Macros and Visual Basic for Applications (VBA) with Excel
Microsoft Windows Vista Chapter 5 Personalize Your Work Environment.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
© by Pearson Education, Inc. All Rights Reserved. continued …
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
 2002 Prentice Hall. All rights reserved. Chapter 2 - Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Overview of the Visual Studio.NET.
Copyright 2007, Paradigm Publishing Inc. POWERPOINT 2007 CHAPTER 1 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Create Presentation Open, Save, Run, Print, Close,Delete.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
®® Microsoft Windows 7 for Power Users Tutorial 2p2 Customizing Microsoft Windows 7.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Visual Basic 2012 CHAPTER TWO Program and Graphical User Interface Design.
Microsoft Excel 2000 Adding Visual Elements and Managing Files.
© 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.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introducing Web Controls Outline 29.1 Analyzing the.
IE 411/511: Visual Programming for Industrial Applications
 Computer use is increasing in almost every field  Computing costs have been decreasing dramatically due to rapid developments in hardware, software.
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.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 4 I Need a Tour Guide.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
 2009 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2008 IDE.
 2009 Pearson Education, Inc. All rights reserved Dive Into ® Visual C# 2008 Express.
Jozef Goetz,  2006 Pearson Education, Inc. All rights reserved.  2002 Prentice Hall. All rights reserved. expanded by J. Goetz, 2009.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Lesson 1 Introduction.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 3 Welcome Application Introduction to Visual Programming.
Chapter 1 Creating a Dreamweaver Web Page and Local Site
Chapter Two Creating a First Project in Visual Basic.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 3.1 Test-Driving the Welcome Application 3.2.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
 2009 Pearson Education, Inc. All rights reserved. 1 CS1120 Introduction to Windows Forms Applications Many slides modified or added by Prof. L. Lilien.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 2.1 Test-Driving the Welcome Application 2.2.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
Lesson: 2 Common Features and Commands After completing this lesson, you will be able to: Identify the main components of the user interface. Identify.
Microsoft Visual Basic 2010 CHAPTER TWO Program and Graphical User Interface Design.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Chapter 3 I Need a Tour Guide (Introduction to Visual Basic 2010) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
Addison Wesley is an imprint of © 2011 Pearson Addison-Wesley. All rights reserved. Chapter 2 Creating Applications with Visual Basic.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2009 Pearson Education, Inc. All rights reserved. 1 CS1120 Introduction to Windows Forms Applications Many slides modified by Prof. L. Lilien (even many.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
 2007 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2005 IDE.
1 Word Processing Intermediate Using Microsoft Office 2000.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
 You won’t write a single line of program code.  Instead, you’ll use visual programming techniques.  Visual Studio processes your actions (such as mouse.
Programming with Microsoft Visual Basic 2012 Chapter 1: An Introduction to Visual Basic 2012.
Dive Into® Visual Basic 2010 Express
Chapter 3: I Need a Tour Guide (Introduction to Visual Basic 2012)
Chapter 2: The Visual Studio .NET Development Environment
Chapter 1: An Introduction to Visual Basic 2015
Chapter 2 – Introduction to the Visual Studio .NET IDE
3.01 Apply Controls Associated With Visual Studio Form
Introduction to the Visual C# 2005 Express Edition IDE
Chapter 2 – Introduction to the Visual Studio .NET IDE
Welcome To Microsoft Word 2016
Presentation transcript:

 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE

 2006 Pearson Education, Inc. All rights reserved. 2 Form ever follows function. — Louis Henri Sullivan Seeing is believing. — Proverb Intelligence …is the faculty of making artificial objects, especially tools to make tools. — Henri-Louis Bergson

 2006 Pearson Education, Inc. All rights reserved. 3 OBJECTIVES In this chapter you will learn:  The basics of the Visual Studio Integrated Development Environment (IDE) that assists you in writing, running and debugging your Visual C# programs.  Visual Studio's help features.  Key commands contained in the IDE's menus and toolbars.  The purpose of the various kinds of windows in the Visual Studio 2005 IDE.  What visual programming is and how it simplifies and speeds program development.  To create, compile and execute a simple Visual C# program that displays text and an image using the Visual Studio IDE and the technique of visual programming.

 2006 Pearson Education, Inc. All rights reserved Introduction 2.2 Overview of the Visual Studio 2005 IDE 2.3Menu Bar and Toolbar 2.4 Navigating the Visual Studio 2005 IDE Solution Explorer Toolbox Properties Window 2.5 Using Help 2.6 Using Visual Programming to Create a Simple Program Displaying Text and an Image 2.7 Wrap-Up 2.8 Web Resources

 2006 Pearson Education, Inc. All rights reserved Introduction Visual Studio 2005 ─Microsoft Integrate Development Environment (IDE) Create, run, and debug programs Visual Programming ─Create program by dragging and dropping predefined building blocks into place

 2006 Pearson Education, Inc. All rights reserved Overview of the Visual Studio 2005 IDE Microsoft Visual C# Express Edition ─Only support Visual C# programming language Start page (Fig. 2.1) ─A list of links to resources in the IDE and on the internet Visual C# Express Headlines and MSDN (Fig. 2.2) ─This section provides links to information about programming in C# Note: MSDN stands for Microsoft Developer Network

 2006 Pearson Education, Inc. All rights reserved. 7 Hidden window Start Page links Empty Solution Explorer (no projects open) New Project button Start Page tab Fig. 2.1 | Start Page in Visual C# 2005 Express Edition.

 2006 Pearson Education, Inc. All rights reserved. 8 Requested Web page (URL in location bar drop-down menu) Selected tab requested Web page Fig. 2.2 | Displaying a Web page in Visual Studio.

 2006 Pearson Education, Inc. All rights reserved Overview of the Visual Studio 2005 IDE (cont.) Creating a New Project ─New Project Dialog (Fig. 2.3) Dialog to choose type of program to build ─Windows Form Designer (Fig. 2.4) Design portion of IDE ─Properties Change a component of the program (Fig. 2.5) ─Buttons Confirm action, change and etc. (Fig. 2.6)

 2006 Pearson Education, Inc. All rights reserved. 10 Visual C# Windows Application (selected) Default project name (provided by Visual Studio) Description of selected project template (provided by Visual Studio) Fig. 2.3 | New Project dialog.

 2006 Pearson Education, Inc. All rights reserved. 11 Active tabTabs Menu Menu bar Solution Explorer window Form (Windows application) Properties window Fig. 2.4 | Design view of the IDE.

 2006 Pearson Education, Inc. All rights reserved. 12 Text box (displaying the text Form1), which can be modified. Fig. 2.5 | Example of a text box control in the Visual Studio IDE.

 2006 Pearson Education, Inc. All rights reserved. 13 OK button Cancel button Fig. 2.6 | Examples of buttons in the Visual Studio IDE.

 2006 Pearson Education, Inc. All rights reserved Menu Bar and Toolbar Menu Bar (Fig. 2.7) ─ The bar of where the commands for managing the IDE and for developing, maintaining and executing programs are located Tool Bar (Fig. 2.9) ─ The bar of where the more common commands are located Tool Tip (Fig. 2.12) ─ Description of a icon

 2006 Pearson Education, Inc. All rights reserved. 15 Fig. 2.7 | Visual Studio menu bar.

 2006 Pearson Education, Inc. All rights reserved. 16 Fig. 2.8 | Summary of Visual Studio 2005 IDE menus (Part 1 of 2).

 2006 Pearson Education, Inc. All rights reserved. 17 Fig. 2.8 | Summary of Visual Studio 2005 IDE menus (Part 2 of 2).

 2006 Pearson Education, Inc. All rights reserved. 18 Save Other Windows Solution Configurations New project Open FileSave All Copy Undo Navigate backwards Start Add Item Cut Paste Redo Navigate forwards Solution Platforms Find in files Solution Explorer Object browser Start Page Find Properties Window Toolbox Window a) b) Fig. 2.9 | Standard toolbar in Visual Studio.

 2006 Pearson Education, Inc. All rights reserved. 19 Standard toolbar Build toolbar added to the Standard toolbar Fig | Adding the Build toolbar to the IDE.

 2006 Pearson Education, Inc. All rights reserved. 20 Toolbar Down arrow indicates additional commands Fig | IDE toolbar icon showing additional commands.

 2006 Pearson Education, Inc. All rights reserved. 21 Tool tip displayed when the mouse pointer rests over the New Project icon Fig | Tool tip demonstration.

 2006 Pearson Education, Inc. All rights reserved. 22 Solution ExplorerToolbox Properties window Fig | Toolbar icons for three Visual Studio windows.

 2006 Pearson Education, Inc. All rights reserved Navigating the Visual Studio 2005 IDE Auto-Hide (Fig – 2.16) ─Space saving feature Solution Explorer (Fig – 2.20) ─Provides access to all of the files in a solution Toolbox (Fig. 2.21) ─Contains icons representing controls used to customize form Properties Window (Fig. 2.22) ─ The window to change information about a form or control

 2006 Pearson Education, Inc. All rights reserved. 24 Tab for hidden window (auto-hide enabled) Fig | Auto-hide feature demonstration.

 2006 Pearson Education, Inc. All rights reserved. 25 Toolbox title bar Horizontal orientation for pin icon Fig | Displaying a hidden window when auto-hide is enabled.

 2006 Pearson Education, Inc. All rights reserved. 26 Toolbox “pinned down” Vertical orientation for pin icon Fig | Disabling auto-hide (“pinning down” a window).

 2006 Pearson Education, Inc. All rights reserved. 27 Show all files icon Toolbar Startup project Fig | Solution Explorer with an open project.

 2006 Pearson Education, Inc. All rights reserved. 28 Plus box Minus box Fig | Solution Explorer showing plus boxes and minus boxes for expanding and collapsing the tree to show or hide project files.

 2006 Pearson Education, Inc. All rights reserved. 29 Minus box indicates that the file of folder is expanded (changed from plus box) Fig | Solution Explorer expanding the Properties file after clicking its plus box.

 2006 Pearson Education, Inc. All rights reserved. 30 Plus boxes indicate that the file or folder is collapsed (changed from minus box) Fig | Solution Explorer collapsing all files after clicking any minus boxes.

 2006 Pearson Education, Inc. All rights reserved. 31 Group names Controls Fig | Toolbox window displaying controls for the Common Controls group.

 2006 Pearson Education, Inc. All rights reserved. 32 Categorized icon Alphabetical icon Description of the Text property Component selection drop-down list Toolbar PropertiesProperties values Fig | Properties window displaying the Text property of the Form.

 2006 Pearson Education, Inc. All rights reserved Using Help Dynamic Help (Fig. 2.24) ─ Excellent way to get information quickly about the IDE and its features Context-Sensitive Help (Fig. 2.25) ─ Immediately displays a relevant help article

 2006 Pearson Education, Inc. All rights reserved. 34 Fig | Help menu commands.

 2006 Pearson Education, Inc. All rights reserved. 35 Contents Selected Item How Do I Search Index Dynamic Help window Relevant help articles on the selected item (e.g., the Form) Fig | Dynamic Help window.

 2006 Pearson Education, Inc. All rights reserved. 36 Fig | Using context-sensitive help.

 2006 Pearson Education, Inc. All rights reserved. 37 Show all settings check box Help options selected Show Help using: box Fig | Options dialog displaying Help settings.

 2006 Pearson Education, Inc. All rights reserved Using Visual Programming to Create a Simple Program Displaying Text and an Image Creating a Simple Program ─Create the new project (Fig ) ─Set the text in in the form’s title bar (Fig. 2.31) ─Resize the form (Fig ) ─Change the form’s background color (Fig ) ─Add a Label control to the form (Fig. 2.36) ─Customize the label’s appearance (Fig ) ─Set the label’s font size (Fig )

 2006 Pearson Education, Inc. All rights reserved Using Visual Programming to Create a Simple Program Displaying Text and an Image (Cont.) Creating a Simple Program (Cont.) ─Align the label’s text (Fig. 2.41) ─Add a PictureBox to the form (Fig. 2.42) ─Insert an image (Fig ) ─Save the project ─Run the project (Fig ) ─Terminate execution

 2006 Pearson Education, Inc. All rights reserved. 40 Label control PictureBox control Fig | Simple program executing.

 2006 Pearson Education, Inc. All rights reserved. 41 Template types Type in the project name Fig | New Project dialog.

 2006 Pearson Education, Inc. All rights reserved. 42 Fig | Save Project dialog.

 2006 Pearson Education, Inc. All rights reserved. 43 Click to set project location Selected Project location Fig | Setting the project location in the Project Location dialog.

 2006 Pearson Education, Inc. All rights reserved. 44 Name and type of object Property value Selected property Property description Fig | Setting the form’s Text property in the Properties window.

 2006 Pearson Education, Inc. All rights reserved. 45 Enabled sizing handles Title bar Fig | Form with enabled sizing handles.

 2006 Pearson Education, Inc. All rights reserved. 46 Fig | Resized form.

 2006 Pearson Education, Inc. All rights reserved. 47 Down-arrow button Current color Custom palette Light blue Fig | Changing the form’s BackColor property.

 2006 Pearson Education, Inc. All rights reserved. 48 New background color Fig | Form with new BackColor property applied.

 2006 Pearson Education, Inc. All rights reserved. 49 Label control Fig | Adding a label to the form.

 2006 Pearson Education, Inc. All rights reserved. 50 AutoSize property Fig | Changing the Label’s AutoSize property to False.

 2006 Pearson Education, Inc. All rights reserved. 51 Sizing handles Label centered with updated Text property Fig | GUI after the form and Label have been customized.

 2006 Pearson Education, Inc. All rights reserved. 52 Ellipsis button Fig | Properties window displaying the Label’s properties.

 2006 Pearson Education, Inc. All rights reserved. 53 Current font Font sample Fig | Font dialog for selecting fonts, styles and sizes.

 2006 Pearson Education, Inc. All rights reserved. 54 Fig | Centering the Label’s text. Text alignment options Middle-center alignment option

 2006 Pearson Education, Inc. All rights reserved. 55 Updated Labe l PictureBox Fig | Inserting and aligning a PictureBox.

 2006 Pearson Education, Inc. All rights reserved. 56 Image property value (no image selected) Fig | Image property of the PictureBox.

 2006 Pearson Education, Inc. All rights reserved. 57 Fig | Select Resource dialog to select an image for the PictureBox.

 2006 Pearson Education, Inc. All rights reserved. 58 Image file name Fig | Select Resource dialog displaying a preview of selected image.

 2006 Pearson Education, Inc. All rights reserved. 59 SizeMode property set to StretchImage SizeMode property Fig | Scaling an image to the size of the PictureBox.

 2006 Pearson Education, Inc. All rights reserved. 60 Newly Inserted image Fig | PictureBox displaying an image.

 2006 Pearson Education, Inc. All rights reserved. 61 Build menu Fig | Building a solution.

 2006 Pearson Education, Inc. All rights reserved. 62 Form Running program Close box Fig | IDE in run mode, with the running program in the foreground window.