Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.

Slides:



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

© 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,
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Getting Started with VB .NET
 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.
Compunet Corporation Programming with Visual Basic.NET GUI Week # 11 Tariq Ibn Aziz.
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)
Creating a Console Application with Visual Studio
Beginning Programming with the Visual Studio.NET Environment.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Introduction to VB.NET Tonga Institute of Higher Education.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
© 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.
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
IE 411/511: Visual Programming for Industrial Applications
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.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
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.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
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.
 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.
Introduction to Visual Basic.NET Chapter 2 Introduction to Controls, Events.
Copyright © 2001 by Wiley. All rights reserved. Chapter 2: Using Visual Basic to Create a First Project Getting Started with VB Development Environment.
Introduction to the Visual Studio.NET IDE (LAB 1 )
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 7 Using Menus, Common Dialogs, Procedures, Functions, and Arrays.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Introduction to Visual Basic.NET Your First Visual Basic.NET Application.
Microsoft Visual Basic 2012 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.
Chapter Two Creating a First Project in Visual Basic.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
 2006 Pearson Education, Inc. All rights reserved Introduction to the Visual C# 2005 Express Edition IDE.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
Chapter 2 – Introduction to the Visual Studio .NET IDE
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 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.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
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.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 3 Building an Application in the Visual Basic.NET Environment.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 2 The Visual Basic.NET Integrated Development Environment.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
 2007 Pearson Education, Inc. All rights reserved Introduction to the Visual Basic Express 2005 IDE.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Dive Into® Visual Basic 2010 Express
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
1. Introduction to Visual Basic
Introduction to the Visual C# 2005 Express Edition IDE
Using Procedures and Exception Handling
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
Understanding the Visual IDE
Overview of the IDE Visual Studio .NET is Microsoft’s Integrated Development Environment (IDE) for creating, running and debugging programs (also.
Presentation transcript:

Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design

Visual Basic.NET Programming: From Problem Analysis to Program Design2 Getting Started with VB.NET Visual Studio.NET can be used for –Visual Basic –Other programming languages Start application. Go to: –Start menu -> (All) Programs -> Microsoft Visual Studio.NET -> Microsoft Visual Studio.NET

Visual Basic.NET Programming: From Problem Analysis to Program Design3

4

5

6 Creating a Project Using Visual Basic.NET Project –Collection of files related to a VB.NET application Template: –Pattern for creating a specific type of application When creating a new project: –Must identify type of project as Visual Basic –Identify template (Windows or Console Application) –Specify project name and location

Visual Basic.NET Programming: From Problem Analysis to Program Design7

8

9 Understanding How VB.NET Organizes Your Programs Solution Explorer window –Shows hierarchical arrangement of items Properties window –Contains information about file properties File names: –Use.vb extension –Named Module1.vb by default

Visual Basic.NET Programming: From Problem Analysis to Program Design10 Using the Text Editor Provides standard text-editing capabilities Also provides: –Color-coding –Code indentation –Code completion (IntelliSense feature) Comment –Statement included for documentation purposes only; not read by the compiler (computer) –Starts with a ‘ (e.g., ‘this is a comment) VB.NET automatically generates some code

Visual Basic.NET Programming: From Problem Analysis to Program Design11 Using the Text Editor (continued) IntelliSense –Helps you complete lines of code by matching words –Recognizes partial class and method names Suggests possible matches for name you are typing

Visual Basic.NET Programming: From Problem Analysis to Program Design12

Visual Basic.NET Programming: From Problem Analysis to Program Design13 Displaying Line Numbers Go to Tools (on the menu bar) –> Options -> Text Editor folder –> Basic Subfolder Click the Line Numbers checkbox Click OK

Visual Basic.NET Programming: From Problem Analysis to Program Design14 Renaming Module1.vb Assign descriptive names to programs you write –Should rename from default names In the Solution Explorer window, click Module1.vb. –File properties of Module1 appear in the Properties window –Use Properties window to change name –Make sure the module is renamed in the source code

Visual Basic.NET Programming: From Problem Analysis to Program Design15 Renaming Module1.vb (cont.)

Visual Basic.NET Programming: From Problem Analysis to Program Design16 Compiling And Executing a Visual Basic.NET Program Select Debug from the menu bar –Click Start Without Debugging –If there are errors: Message box displayed

Visual Basic.NET Programming: From Problem Analysis to Program Design17

Visual Basic.NET Programming: From Problem Analysis to Program Design18

Visual Basic.NET Programming: From Problem Analysis to Program Design19 Using the Visual Form Designer Windows application –Runs in Windows environment Visual form editor: –Windows Form Designer –Can select icons representing various components –Place and arrange components on window –Code is automatically written to match visual form

Visual Basic.NET Programming: From Problem Analysis to Program Design20 Creating a Windows Application Use Windows Application template Use Layout toolbar –To control appearance and position of components The form’s grid –Helps layout components –Not visible when application runs

Visual Basic.NET Programming: From Problem Analysis to Program Design21 Customizing the Appearance of a Form Handle –Use to resize objects –Pointer changes to double arrow –Resize form by clicking and dragging handle Modifiable form elements: –Size –Background color –Title –Name –Position

Visual Basic.NET Programming: From Problem Analysis to Program Design22

Visual Basic.NET Programming: From Problem Analysis to Program Design23

Visual Basic.NET Programming: From Problem Analysis to Program Design24 The Text property does not change the name of the form. The Name property does.

Visual Basic.NET Programming: From Problem Analysis to Program Design25

Visual Basic.NET Programming: From Problem Analysis to Program Design26

Visual Basic.NET Programming: From Problem Analysis to Program Design27 Adding Components to a Form Use Toolbox –Hidden window on left side of main window –Double-click toolbox items to add to form or drag them to the form When adding buttons –Must identify action that will take place when button pressed –Once the button is placed on the form, double-click the button to reveal the code for it

Visual Basic.NET Programming: From Problem Analysis to Program Design28

Visual Basic.NET Programming: From Problem Analysis to Program Design29 Adding Form Components (cont.) Drag and drop a LABEL from the Toolbox to the form Rename it from the Properties window (see next PPT slide)

Visual Basic.NET Programming: From Problem Analysis to Program Design30

Visual Basic.NET Programming: From Problem Analysis to Program Design31 Drag and drop a BUTTON Name it; add code

Visual Basic.NET Programming: From Problem Analysis to Program Design32 Exploring the Debugging Tool Debugger –Helps you isolate errors Breakpoint –Flag that tells debugger to temporarily suspend execution of program at a particular point –Can view information about program May help determine source of problem

Visual Basic.NET Programming: From Problem Analysis to Program Design33 Getting Started with the Debugger Debugger –Intended to help identify errors in program that occur while program is running –Cannot help to find coding/syntax errors that prevent program from being built successfully (Review Syntax errors) –Helps find logic errors HOWEVER does not fix them for you

Visual Basic.NET Programming: From Problem Analysis to Program Design34 Setting Breakpoints Position cursor in code window Right-click –Select Insert Breakpoint from popup menu Program execution is suspended just before line of code where breakpoint is set Execute program in debug mode

Visual Basic.NET Programming: From Problem Analysis to Program Design35

Visual Basic.NET Programming: From Problem Analysis to Program Design36

Visual Basic.NET Programming: From Problem Analysis to Program Design37 Exploring the Help Facility Help features: –Search for help on specific item –Browse table of contents –Scroll through alphabetized index of topics –Dynamic help Identifies help topics in response to actions Displays topics depending on currently selected window or item –Context-sensitive help

Visual Basic.NET Programming: From Problem Analysis to Program Design38 Exploring Context-Sensitive Help Invoke by pressing F1 key Obtain help on virtually any –Keyword –Component –Window –Other element of VB.NET

Visual Basic.NET Programming: From Problem Analysis to Program Design39 Summary Visual Studio.NET –Set of software tools that helps you code, debug, and test a system as you develop it –Provides many options that allow you to customize appearance of screen and the tools –Uses hierarchical arrangement of solutions and projects to organize programs

Visual Basic.NET Programming: From Problem Analysis to Program Design40 Summary (continued) The VB.NET text editor –Supports color-coding, indentation, and code completion features Compile and execute VB.NET program –Using options on Build and Debug menus Visual form editor –Visual development tool –Generates code from forms

Visual Basic.NET Programming: From Problem Analysis to Program Design41 Summary (continued) Debugger –Tool that helps identify problems Help facility of VB.NET provides many options for accessing help