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.

Slides:



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

Chapter 1: An Introduction to Visual Basic 2012
Tutorial 12: Enhancing Excel with Visual Basic for Applications
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 1: An Introduction to Visual Basic.NET Programming with Microsoft Visual Basic.NET, Second Edition.
The Microsoft View: Module 1: Getting Started. Copyright Course 2559B, Introduction to Visual Basic®.NET Programming with Microsoft®.NET. Lecture 1 Microsoft.
Using Visual Basic 6.0 to Create Web-Based Database Applications
1 Visual Basic.NET Application Overview. 2 Objectives Discuss what a typical Visual Basic.NET application looks like Configure the Visual Studio.NET Integrated.
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.
Using the Visual Basic Editor Visual Basic for Applications 1.
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.
The Visual Studio. NET and VB
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.
A First Program Using C#
Visual Basic Chapter 1 Mr. Wangler.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Microsoft Visual Basic 2005: Reloaded Second Edition
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Using Visual Basic 6.0 to Create Web-Based Database Applications
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
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Appendices A - F A-F Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Chapter 5 Menus, Common Dialog Boxes, and Methods Programming in C#.NET © 2003 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
Tutorial 1: An Introduction to Visual Basic.NET1 Tutorial 1 An Introduction to Visual Basic.NET.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
Productivity Programs Common Features and Commands.
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.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Microsoft Visual Basic 2010 CHAPTER THREE Program Design and Coding.
OCC Network Drives  H:\  P:\ 
Chapter Two Creating a First Project in Visual Basic.
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.
Visual Basic CDA College Limassol Campus Lecture:Pelekanou Olga Semester C Week - 1.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Object-Oriented Application Development Using VB.NET 1 Chapter 10 VB.NET GUI Components Overview.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
Creating Menus Menu Bar – behaves like standard Windows menus Can be used in place of or in addition to buttons to execute a procedure Menu items are controls.
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.
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 BASICS Lesson 14 Menus and Printing.
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.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Chapter 7 Multiple Forms, Modules, and Menus. Section 7.2 MODULES A module contains code—declarations and procedures—that are used by other files in a.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
2-1 Chapter 2 Using VB.NET to Create a First Solution.
Dive Into® Visual Basic 2010 Express
Visual Basic.NET Windows Programming
Working in the Forms Developer Environment
1. Introduction to Visual Basic
Presentation transcript:

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 programming and Web applications programming Visual Basic.NET introduces Web forms that bring the same design principles and level of productivity to mobile Web applications

Tutorial 112 The Visual Studio.NET Environment

Tutorial 113 Identify the Components of Visual Studio.NET and the new IDE The Visual Studio.NET IDE has a new, customizable look that integrates Visual Basic and the other Microsoft programming languages This common IDE also provides better debugging throughout the project The real strength of the common IDE is in its support for Web applications

Tutorial 114 Identify the Components of Visual Studio.NET and the new IDE

Tutorial 115 Modify Your Profile in the Visual Studio.NET IDE The new Visual Studio.NET IDE allows you to customize various program settings such as keyboard scheme, window layout, and help filter This collection of customized preferences is called a profile

Tutorial 116 Modify Your Profile in the Visual Studio.NET IDE

Tutorial 117 Modify Your Profile in the Visual Studio.NET IDE Like Visual Basic 6.0, the new IDE provides a Toolbox where various programming elements are stored

Tutorial 118 Customizing the New Visual Studio.NET IDE You can customize many of the IDE’s menu features Customization of the IDE allows you, as a developer, to set the IDE to your particular needs, making you both more efficient and effective in your application development, since you will not need to reset the IDE each time you enter the environment

Tutorial 119 Customizing the New Visual Studio.NET IDE

Tutorial 1110 Customizing the New Visual Studio.NET IDE

Tutorial 1111 Using Solution Explorer New to the IDE are solutions, which are containers for specific project types at each of the logical application tiers The IDE shows these project types in the Solution Explorer, which displays a list of all the projects that are part of the current solution along with their corresponding files and directories A solution can include several projects, even if they are written in different programming languages

Tutorial 1112 Using Solution Explorer

Tutorial 1113 Working with Dynamic Help The Dynamic Help window allows you to access context-sensitive help with one click The Dynamic Help feature tracks the actions you have made while in the IDE

Tutorial 1114 Working with Dynamic Help

Tutorial 1115 Using the Task List The Task List feature was formerly available only to developers working in Visual InterDev and Visual J++ It allows you to mark code with comments related to tasks that need to be done

Tutorial 1116 Using the Task List

Tutorial 1117 The Command Window In the new Visual Studio.NET IDE Command Window, you can perform search and replace operations across the Visual Studio.NET environment using the find, navigate, and execute features—all in a single input line

Tutorial 1118 Starting Visual Basic.NET The first step of building any Visual Basic.NET application is to start Visual Basic

Tutorial 1119 Starting Visual Basic.NET

Tutorial 1120 Using Windows Forms Windows Forms replaces the Visual Basic Form that you used to create program interfaces in Visual Basic 6.0 Windows Forms provides improved features that make it easier for you to create interfaces for your Visual Basic programs Windows Forms provides a standard development platform across the different languages supported by Visual Studio.NET

Tutorial 1121 Viewing Code in Windows Forms At first glance, you will see that Visual Basic.NET Windows Forms looks similar to the Visual Basic 6.0 Form Unlike Visual Basic 6.0, the new form module contains all of the code to instantiate the form and the runtime instance of the controls created on the form

Tutorial 1122 Viewing Code in Windows Forms

Tutorial 1123 Differences Between Visual Basic.NET Windows Forms and Visual Basic 6.0 Forms Windows Forms is compatible with the forms package in Visual Basic 6.0 The key differences are as follows: There is no shape control in Windows Forms There is no line control in Windows Forms As you learned in Tutorial 6, Lesson B, in Visual Basic 6.0, there was one menu control, called Menu. Menu could be opened as a MainMenu or ContextMenu Visual Basic.NET Windows Forms does not support the Form.PrintForm method

Tutorial 1124 Setting Appearance Properties You will work in the Visual Basic.NET Design View and experiment with properties of controls

Tutorial 1125 Adding a Label Control to the Windows Forms Calendar Application The first control you will work with in Visual Basic.NET is the label control

Tutorial 1126 Adding a Label Control to the Windows Forms Calendar Application

Tutorial 1127 Adding Picture, Text, and Frame Controls In the Windows Forms application, the functionality of Visual Basic 6.0 controls still exists; however, the names, various properties, and methods have been changed

Tutorial 1128 Adding ActiveX Calendar, Date, and Time Controls The DateTimePicker and MonthCalendar are ActiveX intrinsic controls included in Visual Basic.NET—they are built right into the core Visual Basic.NET code You never have to add them to the Toolbox

Tutorial 1129 Adding a Button Control and Code You will use the Visual Basic.NET Button control to handle this task Now that you have added the button to the form, you must program it with the appropriate message using the procedures outlined at the top of page 828 of the textbook

Tutorial 1130 Visual Basic 6.0 and Visual Basic.NET: Differences in Coding Visual Basic.NET is now truly an object-oriented programming language with true object class inheritance You will programmatically add functionality to the Button control you just created In Visual Basic 6.0, the programmer did not see the code for many controls Visual Basic 6.0 automatically added to the program the references to the control instances created on the form

Tutorial 1131 Visual Basic 6.0 and Visual Basic.NET: Differences in Coding

Tutorial 1132 Completing the Code for the Button Now you will add the code that displays the textbook and the message that appears when the button is clicked To make the button on your Pets Online application functional, you will need to enter code in your calendar application as shown on page 829 of the textbook

Tutorial 1133 Variable Declarations in Visual Basic.NET In Visual Basic.NET, all variables in a single Dim statement must have the same type and that type need only be declared after the last variable is declared In Visual Basic.NET, however, the scope of a variable is restricted to the smallest area possible Variables are declared only when they are first used This allows variables to be limited to parts of procedures

Tutorial 1134 Passing Parameters in Visual Basic.NET In Visual Basic.NET, the parameters are passed ByVal by default, with the exception of references to classes, interfaces, and arrays, which are still passed ByRef by default To test the button perform the two procedures listed on pages 830 and 831 of the textbook

Tutorial 1135 Adding a Link Label to the Windows Forms Calendar Application Pets Online wants its customers to be able to click a link to its online catalog You can use the new Visual Basic.NET LinkLabel control to do this This control, like other new controls—such as Tray Icon and Print Preview—are new to Visual Basic.NET and provide additional common functionality for developers The LinkLabel control allows you to create and add Web-style links on your Windows Forms applications

Tutorial 1136 Adding a Link Label to the Windows Forms Calendar Application

Tutorial 1137 Adding a Menu and Menu Items With the new Visual Basic.NET Menu Designer control, you can quickly and easily add menus to Windows Forms application, modify them, and view them without having to run the application

Tutorial 1138 Adding a Menu and Menu Items You will need to also add the code for the Click event for the Exit option When the user clicks this option on the menu, the application should use the Close statement to Close the form

Tutorial 1139 Printing Windows Forms Application Code To print the code: Verify that you are in Code View From the IDE menu bar, select File, Page Setup. Select the Line numbers check box to number the code lines for reference Click OK From the menu bar, select File, Print and click OK

Tutorial 1140 Saving and Exiting a Windows Forms Application You should save all the components of this application before you exit Visual Basic.NET If you are distributing your application to a user, you will need to give the user a copy of the calendar.exe file and a copy of the Visual Basic runtime file (msvbvm6.0.dll), just as you do with Visual Basic 6.0