2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.

Slides:



Advertisements
Similar presentations
Using Macros and Visual Basic for Applications (VBA) with Excel
Advertisements

© 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.
Paint Shop Tutorial. Essential Overview New Corel Paint Shop Pro Photo X2 is the ideal choice for any aspiring photographer's digital darkroom. It's filled.
 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 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 2012 CHAPTER TWO Program and Graphical User Interface Design.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 4 1 Microsoft Office FrontPage 2003 Tutorial 4 – Using Shared Borders and Themes.
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.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
 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.
Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. WEB.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Computing Fundamentals Module Lesson 3 — Changing Settings and Customizing the Desktop Computer Literacy BASICS.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
Introduction It is developed to create software applications. It is a tool for developers of any program that uses both basic and expert settings. It.
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.
Microsoft Publisher 2010 Chapter 1 Creating a Flyer.
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.
Microsoft Office 2010 is the newest version of Microsoft Office, offering features that provide users with better functionality and easier ways to work.
Getting Started with Adobe Illustrator CS6. Objectives Define illustration software Start Adobe Illustrator CS6 and change preference settings View the.
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.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
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.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
What Is Firefox? __________ is a Web ___________ that you use to search for and view Web pages, save pages for use in the future, and maintain a list.
Adobe Illustrator CS5 - Illustrated Unit A:Getting Started with Adobe Illustrator CS5.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
 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.
2-1 Chapter 2 Using VB.NET to Create a First Solution.
Dive Into® Visual Basic 2010 Express
Chapter 2: The Visual Studio .NET Development Environment
Chapter 2 – Introduction to the Visual Studio .NET IDE
1. Introduction to Visual Basic
Introduction to the Visual C# 2005 Express Edition IDE
Comprehend. Create. Communicate. Achieve More.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Visual Studio.
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book

Chapter Outline Introduction Introduction Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and Toolbar Menu Bar and Toolbar Visual Studio.NET IDE Windows Visual Studio.NET IDE Windows Solution Explorer Solution Explorer – Toolbox – Properties Window – Using Help Simple Program: Displaying Text and an Image Simple Program: Displaying Text and an Image

Introduction Introduction Visual Studio.NET Visual Studio.NET – Microsoft’s Integrated Development Environment (IDE) – used by VB.NET and other languages to create, run & debug programs. Visual programming Visual programming – Dragging and dropping predefined building blocks into place to create a simple Visual Basic program

Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE When Visual Studio.NET begins execution, the Start Page displays

Get Started loads a page that contains a table listing the names of recent projects. Get Started loads a page that contains a table listing the names of recent projects. What’s New displays a page that lists new features and updates for Visual Studio.NET. What’s New displays a page that lists new features and updates for Visual Studio.NET. Online Community links to online resources for contacting other software developers through newsgroups and Web sites.Online Community links to online resources for contacting other software developers through newsgroups and Web sites. Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE

Headlines provides a page for browsing news, articles and how-to guides. Headlines provides a page for browsing news, articles and how-to guides. Search Online to access more extensive information, users can select and begin browsing through the MSDN (Microsoft Developer Network) online library, which contains numerous articles, downloads and tutorials on various technologies of interest to Visual Studio.NET developers. Search Online to access more extensive information, users can select and begin browsing through the MSDN (Microsoft Developer Network) online library, which contains numerous articles, downloads and tutorials on various technologies of interest to Visual Studio.NET developers. Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE

Downloads displays a page that provides programmers access to product updates, code samples and reference materials. Downloads displays a page that provides programmers access to product updates, code samples and reference materials. The My Profile link loads a page where users can adjust and customize various Visual Studio.NET settings, such as keyboard schemes and window layout preferences. The My Profile link loads a page where users can adjust and customize various Visual Studio.NET settings, such as keyboard schemes and window layout preferences. Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE

Programmers can browse the Web from the IDE using Internet Explorer (also called the internal Web browser in Visual Studio.NET). To request a Web page, type its address into the location bar and press the Enter key. Programmers can browse the Web from the IDE using Internet Explorer (also called the internal Web browser in Visual Studio.NET). To request a Web page, type its address into the location bar and press the Enter key. Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE

To create a new Visual Basic program, click the New Project button, which displays the New Project dialog. To create a new Visual Basic program, click the New Project button, which displays the New Project dialog. The Visual Studio.NET IDE organizes programs into projects and solutions, which contain one or more projects. The Visual Studio.NET IDE organizes programs into projects and solutions, which contain one or more projects. Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE

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 Overview of the Visual Studio.NET IDE

Menu Bar and Toolbar

The programmer can access menu commands from the toolbar, which contains pictures, called icons, that graphically represent commands. Positioning the mouse pointer over an icon pointer over an icon displays a description called a tool tip called a tool tip Menu Bar and Toolbar

Visual Studio.NET IDE Windows The IDE provides windows for accessing project files and customizing controls. 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.These windows can be accessed via the toolbar icons or by selecting the name of the desired window in the View menu.

Demonstrating the auto-hide feature

Solution Explorer The Solution Explorer window provides access to all the files in the solution. all the files in the solution.

Toolbox The Toolbox window contains controls used to customize forms. Programmers can “drag and drop” controls onto the form.

Properties Window The Properties window displays the properties for a form or control. Properties specify information such as size, color and position.

Using Help The Help menu contains a variety of commands, which are summarized in the following table.

Using Help – Dynamic Help

Simple Program: Displaying Text and an Image Create a program that displays the text “Welcome to Visual Basic!” and an image. The program consists of a single form that uses a label control (i.e., a control that displays text which the user cannot modify) and a picture box to display the image.

select File > New > Project... to display the New Project dialog. select File > New > Project... to display the New Project dialog. The IDE then loads the new single-project solution, which contains a form named Form1. The IDE then loads the new single-project solution, which contains a form named Form1. 1. Create the new project.

2. Set the text in the form’s title bar. The text in the form’s title bar is determined by the form’s Text property.

3. Resize the form.

4. Change the form’s background color. The BackColor property specifies a form’s or control’s background color.

5. Add a label control to the form. Windows Forms button in the Toolbox. Double-click the Label control in the Toolbox. you also can “drag” controls from the Toolbox to the form.

6. Customize the label’s appearance. Set the label’s Text property to Welcome to Visual Basic!. Resize the label if the text does not fit. Move the label to the top center of the form

7. Set the label’s font size and align its text.

8. Add a picture box to the form. Locate the picture box in the Toolbox and then double click it to add it to the form.

9. Insert an image. Click the picture box to display its properties in the Properties window. Locate the Image property

No picture has been assigned, so the value of the Image property displays (none). Click the ellipsis button to display the Open dialog. 9. Insert an image.

To size the image to the picture box, change the SizeMode property to StretchImage, which scales the image to the size of the picture box. the image to the size of the picture box. 9. Insert an image.

10. Save the project. Select File > Save All to save the entire solution.

11. Run the project. Up to this point, we have been working in the IDE design mode (i.e., the program being created is not executing).Up to this point, we have been working in the IDE design mode (i.e., the program being created is not executing). In run mode, the program is executing, and programmers can interact with only a few IDE features. In run mode, the program is executing, and programmers can interact with only a few IDE features. Selecting Debug > Start Without Debugging executes the program.

Figure below shows the IDE in run mode. Note that many toolbar icons and menus are disabled. 11. Run the project.

12. Terminate execution. To terminate the program, click the running application’s close button (the x in the top- right corner). To terminate the program, click the running application’s close button (the x in the top- right corner). This action stops program execution and returns the IDE to design mode. This action stops program execution and returns the IDE to design mode.

In VS.NET the code you create is organized using different layers of grouping : In VS.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. Solution Explorer : provides access to all the files in a solution. ToolBox : contains controls used to customize forms. ToolBox : contains controls used to customize forms. Properties Window : displays the properties for a form or a control. Properties Window : displays the properties for a form or a control. Conclusion