 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.

Slides:



Advertisements
Similar presentations
CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Advertisements

Chapter 1: An Introduction to Visual Basic 2012
Using Macros and Visual Basic for Applications (VBA) with Excel
© 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,
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
 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.
Chapter 31 Visual Basic Controls A Form is a windows-style screen displayed by Visual Basic programs. In a form, a programmer can create objects in a form.
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.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 8 Working with Macros and Visual Basic for Applications (VBA)
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter One An Introduction to Visual Basic 2010.
Chapter 3 Introduction to Event Handling and Windows Forms Applications.
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 Visual Basic 2012 CHAPTER TWELVE (ENRICHMENT CHAPTER) Windows Store Apps.
IE 411/511: Visual Programming for Industrial Applications
Chapter 1: An Introduction to Visual Basic 2005 Programming with Microsoft Visual Basic 2005, Third Edition.
 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.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
Introduction to the Visual Studio.NET IDE (LAB 1 )
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
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 3.1 Test-Driving the Welcome Application 3.2.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Visual Basic 2005 CHAPTER 2 Program and Graphical User Interface Design.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
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.
Computing Fundamentals Module Lesson 7 — The Windows Operating System Computer Literacy BASICS.
Microsoft Office 2010 is the newest version of Microsoft Office, offering features that provide users with better functionality and easier ways to work.
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.
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.
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.
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
Program and Graphical User Interface Design
3.01 Apply Controls Associated With Visual Studio Form
Introduction to the Visual C# 2005 Express Edition IDE
Program and Graphical User Interface Design
Chapter 2 – Introduction to the Visual Studio .NET IDE
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment (IDE) Overview Menu Bar and Toolbar Visual Studio.NET Windows Solution Explorer Toolbox Properties Window Simple Program: Displaying Text and an Image

 2002 Prentice Hall. All rights reserved. 2 Introduction Visual Studio.NET –Microsoft’s Integrated Development Environment (IDE) –Program in a variety of.NET languages –Tools to edit and manipulate several file types

 2002 Prentice Hall. All rights reserved. 3 Visual Studio.NET Integrated Development Environment (IDE) The Start Page (Fig. 2.1) –Links to recent projects The Open Project button The New Project button –The Getting Started screen Helpful links appear on left side

 2002 Prentice Hall. All rights reserved. 4 Visual Studio.NET Integrated Development Environment (IDE) Fig. 2.1 start up page navigation buttons Solution Explorer Error window hidden linked recent projects property Open a project Create a new project

 2002 Prentice Hall. All rights reserved. 5 Visual Studio.NET Integrated Development Environment (IDE) New project dialogue (Fig. 2.2) –Console application Group of projects creating one or a group of applications –Windows Applications also called window form application Has graphical interface. Has close, maximize and minimize buttoon. Anything that runs in the Windows OS –Microsoft Word –Microsoft Internet Explorer –WPF application

 2002 Prentice Hall. All rights reserved. 6 New project page Fig. 2.2 New Project dialog. Visual C# Projects Folder Project Name Project Location Description of selected project Visual C# Windows Application Console Application (Selected)

 2002 Prentice Hall. All rights reserved. 7 Programming page

 2002 Prentice Hall. All rights reserved. 8 Visual Studio.NET Integrated Development Environment (IDE) IDE after a new project (Fig. 2.3) –The form Grey rectangle in window Represents the project’s window Part of the GUI or Graphical User Interface –Graphical components for user interaction –User can enter data (input) –Shows user instructions or results (output) –Tabs One tab appears for each open document Used to save space in the IDE

 2002 Prentice Hall. All rights reserved. 9 tabs menutitle bat menu bar active tab Solution Explorer Properties window Form (windows application)

 2002 Prentice Hall. All rights reserved. 10 Menu Bar and Toolbar The menu bar (Fig. 2.4) –Commands for developing and executing programs Create new projects by going to File > New > Project –Certain menu options only appear in specific IDE modes –Each menu is summarized in Fig. 2.5 Fig. 2.4Visual Studio.NET menu bar.

 2002 Prentice Hall. All rights reserved Menu Bar and Toolbar Fig. 2.5Summary of Visual Studio menus.

 2002 Prentice Hall. All rights reserved Menu Bar and Toolbar toolbar icon (indicates a command to open a file) down arrow indicates additional commands toolbar The toolbar Contains commonly used commands as icons (Fig. 2.8) Used rather than navigating through menus Simply click the icon to use the command Some icons have down arrows that offer additional commands

 2002 Prentice Hall. All rights reserved. 13 Tool tip demonstration. Fig. 2.7 Holding the mouse over an icon displays a tool tip (Fig. 2.7) Tool tips briefly state what the icons are or do. tool tip

 2002 Prentice Hall. All rights reserved. 14 Solution Explorer Fig. 2.8Toolbar icons for various Visual Studio.NET windows. Properties Toolbox Solution Explorer

 2002 Prentice Hall. All rights reserved. 15 Visual Studio.NET Windows Windows –Used to explore files –Used to customize controls –Accessed through the toolbar icons or right edge of toolbar –Also accessed through the View menu

 2002 Prentice Hall. All rights reserved. 16 Solution Explorer The Solution Explorer (Fig. 2.9) –Lists all files in the solution –Displays the contents or a new project or open file –The start up project is the project that runs when the program is executed It appears in bold in the Solution Explorer –The plus and minus images expand and collapse the tree Can also double click on the file name to expand/collapse –Solution Explorer toolbar The Refresh icon reloads files in the solution The Display icon shows all files, even the hidden ones Icons change based on selected file

 2002 Prentice Hall. All rights reserved. 17 Solution Explorer Fig. 2.9 Solution Explorer window. RefreshDisplay all files Startup project Collapse tree Expand tree Properties window

 2002 Prentice Hall. All rights reserved. 18 Toolbox The Toolbox (Fig. 2.10) –Contains reusable controls Controls customize the form Visual programming allows ‘drag and drop’ of controls –Black arrows at bottom are used to scroll through items –Mouse pointer icon Allows user to deselect current control –No tool tips Each icon is labeled with a its name –Toolbox can be hidden on left side of IDE (Fig. 2.11) Mouse over it to expand it When the mouse is no longer over it, the toolbar goes away The pin icon is used disable auto hide

 2002 Prentice Hall. All rights reserved. 19 Toolbox Fig Toolbox window. toolbox group controls scroll arrow

 2002 Prentice Hall. All rights reserved. 20 Toolbox Fig. 2.11Demonstrating window auto-hide. mouse over window name toggle auto hide close button

 2002 Prentice Hall. All rights reserved. 21 Properties window The Properties window (Fig. 2.12) –Manipulate the properties of a form or control –Each control has its own set of properties Properties can include size, color, text, or position –Right column is the property –Left column is the property value –Icons The Alphabetic icon arranges the properties alphabetically The Categorized icon arranges the properties by category The Event icon allows reactions to user actions –Users alter controls visually without writing code –The component selection dropdown list shows what control is being altered and what other controls can be altered

 2002 Prentice Hall. All rights reserved. 22 Properties Window. Alphabet icon Characterized icon Event icon Component selection Scroll bar Current value Property Description

 2002 Prentice Hall. All rights reserved. 23 Simple Program: Displaying Text and an Image Fig. 2.14Simple program as it executes.

 2002 Prentice Hall. All rights reserved. 24 Simple Program: Displaying Text and an Image Fig. 2.15Creating a new Windows application. Project name Project location Click to change project location Project type

 2002 Prentice Hall. All rights reserved. 25 Simple Program: Displaying Text and an Image Fig. 2.16Setting the project location. Select project location Click to set project location

 2002 Prentice Hall. All rights reserved. 26 Simple Program: Displaying Text and an Image Fig. 2.17Setting the form’s Text property. Name and type of object Property value Selected property Property description

 2002 Prentice Hall. All rights reserved. 27 Simple Program: Displaying Text and an Image Resize the form (Fig. 2.18) –Click and drag one of the forms size handles Enables handles are white Disables handles are gray –The grid in the background will not appear in the solution Change the form’s background color (Fig. 2.19) –The BackColor determines the form’s background color Dropdown arrow is used to set the color Add a label control to the form (Fig. 2.20) –Controls can be dragged to the form –Controls can be added to the form by double clicking –The forms background color is the default of added controls

 2002 Prentice Hall. All rights reserved. 28 Simple Program: Displaying Text and an Image Fig. 2.18Form with sizing handles. grid Mouse pointer over a sizing handle Enabled sizing handle Disabled sizing handle Title bar

 2002 Prentice Hall. All rights reserved. 29 Simple Program: Displaying Text and an Image Fig. 2.19Changing property BackColor. Down arrow Current color Custom palette

 2002 Prentice Hall. All rights reserved. 30 Simple Program: Displaying Text and an Image Fig. 2.20Adding a new label to the form. Label control New background color

 2002 Prentice Hall. All rights reserved. 31 Simple Program: Displaying Text and an Image Set the label’s text (Fig. 2.21) –The Text property is used to set the text of a label –The label can be dragged to a desired location –Or Format > Center In Form > Horizontal can also be used to position the label as in in this example Set the label’s font size and align text (Fig. 2.22) –The Font property changes the label’s text (Fig. 2.23) –The TextAlign property to align the text (Fig. 2.24) Add a picture box to the form (Fig. 2.25) –Picture boxes are used to display pictures –Drag the picture box onto the form

 2002 Prentice Hall. All rights reserved. 32 Simple Program: Displaying Text and an Image Fig. 2.21Label in position with its Text property set. Label centered with updated Text property

 2002 Prentice Hall. All rights reserved. 33 Simple Program: Displaying Text and an Image Fig Properties window displaying the label’s properties. Ellipsis indicate dialog will appear

 2002 Prentice Hall. All rights reserved. 34 Simple Program: Displaying Text and an Image Fig Font window for selecting fonts, styles and sizes. Font size Current font

 2002 Prentice Hall. All rights reserved. 35 Simple Program: Displaying Text and an Image Fig. 2.24Centering the text in the label. Text alignment option Top-center alignment option

 2002 Prentice Hall. All rights reserved. 36 Simple Program: Displaying Text and an Image Fig. 2.25Inserting and aligning the picture box. Updated Label New PictureBox

 2002 Prentice Hall. All rights reserved. 37 Simple Program: Displaying Text and an Image Insert an image –The Image property sets the image that appears (Fig. 2.26) Pictures should be of type.gif,.jpeg, or.png (Fig. 2.27) –The picture box is resizable to fit the entire image (Fig. 2.28) Save the project –In the Solution Explorer select File > Save –Using Save All will save the source code and the project Run the project (Fig. 2.29) –In run mode several IDE features are disabled –Click Build Solution in the Build menu to compile the solution –Click Debug in the Start menu or press the F5 key

 2002 Prentice Hall. All rights reserved. 38 Simple Program: Displaying Text and an Image Fig Image property of the picture box. Image property value (no image selected)

 2002 Prentice Hall. All rights reserved. 39 Simple Program: Displaying Text and an Image Fig. 2.27Selecting an image for the picture box.

 2002 Prentice Hall. All rights reserved. 40 Simple Program: Displaying Text and an Image Fig. 2.28Picture box after the image has been inserted. Newly inserted image (after resizing the picture box)

 2002 Prentice Hall. All rights reserved. 41 Simple Program: Displaying Text and an Image Fig. 2.29IDE in run mode, with the running application in the foreground. Start button End button Run modeDesign form Design form (grid) Running application

 2002 Prentice Hall. All rights reserved. 42 Simple Program: Displaying Text and an Image Terminating the program –Click the close button ( x in the top right corner) –Or click the End button in the toolbar