Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/2008 10:35 PM.

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
© 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,
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Getting Started with VB .NET
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Creating a Console Application with Visual Studio
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.
McGraw-Hill© 2007 The McGraw-Hill Companies, Inc. All rights reserved. 1-1.
Chapter 3 Navigating a Project Goals & Objectives 1.Get familiar with the navigation of the project. How is everything structured? What settings can you.
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.
Microsoft Visual Basic 2005: Reloaded Second Edition
Lecture Set 1 Part B: Understanding Visual Studio and.NET – Structure and Terminology 1/16/ :04 PM.
IE 411/511: Visual Programming for Industrial Applications
Lecture Set 3 Introduction to Visual Basic Concepts Part C – Design Mode Properties In-Depth Look at Common Features of Controls.
Visual Studio.NET Part 2 dbg --- Using the VS.NET Integrated Development Environment.
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.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Lecture Set 2 Part B – Configuring Visual Studio; Configuration Options and The Help System (scan quickly for future reference)
Lecture Set 1 Part C: Understanding Visual Studio and.NET – Applications, Solutions, Projects (no longer used – embedded in Lecture Set 2A)
Domain 3 Understanding the Adobe Dreamweaver CS5 Interface.
© 2005 Pearson Education, Inc., Upper Saddle River, NJ. All rights reserved. Data Structures for Java William H. Ford William R. Topp Appendix E The EZJava.
Visual Studio.NET Part 2 dbg --- Using the Integrated Development Environment.
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 )
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
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.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
Using Microsoft Visual Studio 2005 Original by Suma Rao Revised by John G. McMahon ( 9/6/2008 )
Chapter 2 Part C – More on the Help System and The Object Browser (scan quickly for future reference)
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.
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 5.1 Test-Driving the Inventory Application.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Microsoft Visual Basic 2008: Reloaded Third Edition Chapter One An Introduction to Visual Basic 2008.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Web Development in Microsoft Visual Studio 2013 / 2015.
Object-Oriented Application Development Using VB.NET 1 Chapter 2 The Visual Studio.NET Development Environment.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
Creating New Forms Projects can appear more professional when using different windows for different types of information. Select Add Windows Form from.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
1 Using an Integrated Development Environment. Integrated Development Environments An Integrated Development Environment, or IDE, permits you to edit,
Based On Murach’s slides
Dive Into® Visual Basic 2010 Express
Chapter 2: The Visual Studio .NET Development Environment
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Using Visual Studio with C#
Web Development in Microsoft Visual Studio 2013
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
Creating a Windows Application Project in Visual Studio
Presentation transcript:

Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM

Slide 2 Objectives (Much of this Lecture Set should be read with Visual Studio open in another window. The figures in these slides are VB and not C#. You may prefer to see actual C# versions as shown in the text.) Introduction to Console and Windows Applications Understand basic terminology – Solutions Projects, Applications, etc. See how to create new Solutions, new Applications/Projects General navigation around a Windows Application and the Solution Explorer and other windows in the Visual Studio IDE 01/02/2016 4:40PM

Slide 3 BIG WARNING Name everything you create with a meaningful name more on this to come do not let the system name things for you we will discuss naming conventions later from the creation of you application to the smallest of buttons – use meaningful names!! 7/29/ :36 PM

Slide 4 Console Applications Visual Studio supports the creation of a number of different types of Applications  Each different type of Application has a different structure and automatically provides support for different applications code Types of Applications we will work with in this course Windows Applications (if time permits) A little work with Web Applications 7/29/ :36 PM

Slide 5 Types of Applications 7/29/ :36 PM

Slide 6 Windows Applications We now move on to examine (more thoroughly) Windows Applications We begin with a look at the Visual Studio 2012 interface for a sample Windows Application  Note the default list of References and the Form (as distinguished from what we saw in the Console interface) To get full views of information )all files, etc. click on “Show All Files” (top of Solution Explorer window) More solution information shows up after you do a Build 01/02/2016 4:36PM

Slide 7 VS 2012 Interface for Windows Application 01/02/2016 4:36 PM

Slide 8 Solutions and Applications Look again at the VS 2012 Interface for a Windows Application (one slide back) What do we see? Applications? Solutions Projects Toolbox Look at the files associated with solution 01/02/2016 4:36 PM

Slide 9 What are these things? Solution Each Application that you create is organized by Visual Studio into a Solution The Solution file is the heart of an Application’s structure A Solution in turn consists of numerous files and folders, including one or more Projects Multiple folders – look at slide 7 The is also a Solution File (.sln) (not to be monkeyed with) 8/10/ :36 PM

Slide 10 A Visual Studio Solution 7/29/ :36 PM

Slide 11 Solution Explorer 8/10/ :36 PM

Slide 12 A Solution – As Seen in Your Files System 8/10/ :36 PM

Slide 13 Project Characteristics Again, refer back to Slide 11 A project contains one or more namespaces Every project has one root namespace But projects can have many other Namespaces Every project has a type (Console, Windows, Web etc.) Each project gets compiled into an Assembly Every project has an entry point Usually a function included in the partial class for the main form Forms apply only to Windows Application projects 7/29/ :36 PM

Slide 14 A Project (continued) 7/29/ :36 PM

Slide 15 Project References A project has references to.NET Framework class library namespaces (See Slide 11).NET automatically adds references to commonly used namespaces based on the type of project template Use the References tab of the project property page to add additional namespace references 7/29/ :36 PM

Slide 16 Some FCL Namespaces That Can Be Referenced 8/10/ :36 PM

Slide 17 Creating a New Solution (you did this already) Click on VS 2012 Icon on your desktop. Click on Create New Project to display the New Project dialog box Specify the project template and the project file name OR pull down the File menu and follow the same directions Different templates appear based on the installed Visual Studio edition  01/02/2016 4:36 PM

Slide 18 New Project Dialog Box (VB example) 7/29/ :36 PM

Slide 19 Creating a New Project A new project does not exist in a vacuum – it must be part of an application In VS, you begin with the application you wish to create, and VS organizes everything you do into a Solution (with one or more Projects) The Application, and everything related to it is encapsulated in a Visual Studio solution There may be multiple projects inside a solution The solution takes on the name of the first Project created 8/10/ :36 PM

Slide 20 Saving a Visual Studio Project Click File, Save All to save the solution the first time Be sure you understand where all the solution files are being saved (discussed in other documentation related to this course) By default, a new folder is created for a new solution 7/29/ :36 PM

Slide 21 Organization of a Visual Studio Solution The Solution Explorer is used to manage the elements of a solution The folder named My Project contains configuration information common to all projects The file AssemblyInfo.cs contains assembly metadata The References folder contains references to namespaces containing other assemblies The bin folder contains the executable file produced as a result of compiling the application A project contains one or more parts 7/29/ :36 PM

Slide 22 Solution Explorer with All Folders Expanded (VB) 7/29/ :36 PM

Slide 23 Using the Solution Explorer The Solution Explorer is a tool window as opposed to a document window Use the drill-down interface to expand and collapse folders Icons appear to identify different file types File names appear to the right of the file type icon Use the Solution Explorer to rename files rather than Windows Explorer (Again – look at an example with Visual Studio open and focused on items such as the options menu, the toolbox, and the solution explorer.) 7/29/ :36 PM

Slide 24 The Solution Explorer Toolbar The Properties button displays the Properties window The View Code button displays the Code Editor for a module The View Designer button displays a visual designer The visual designer varies based on the file’s contents Not all files have an associated visual designer The Refresh button synchronizes files The Show All Files button displays all folders and files The View in Diagram button displays a class in a hierarchical view 8/10/ :36 PM

Slide 25 Windows of the Visual Studio IDE Windows are of two types Tool windows are common to all applications Tool windows are used for development in all Visual Studio languages Document windows are used to create the visual interface and code for an application You will see examples of both types of windows in your work 7/29/ :36 PM

Slide 26 Tool Windows The Solution Explorer groups the elements of a solution The Properties window is used to set properties for objects The Toolbox contains controls that are created on a form Several tool windows exist for debugging Refer to Appendix A in the Lecture Notes The Error List window displays syntax errors The Output window displays information as a project is compiled 7/29/ :36 PM

Slide 27 Displaying Tool Windows Tool windows can be anchored along an edge of the IDE The process is called docking Docked windows can be Auto Hidden Auto Hidden windows appear when the mouse is positioned over the hidden window tab Floating windows appear anywhere on the desktop Some tool windows can be configured to appear as document windows 8/10/ :36 PM

Slide 28 The Appearance of Tool Windows in the Visual Studio IDE (VB) 7/29/ :36 PM