Learning to Program in Visual Basic 2005 Table of Contents

Similar documents
Microsoft Visual C# 2005: Developing Applications Table of Contents

Course Hours

Microsoft Visual Basic 2005: Developing Applications Additional Topics

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio

ASP.NET Using Visual C# 2005: Additional Topics Table of Contents

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo

Introduction to Programming Using Java (98-388)

Microsoft. Microsoft Visual C# Step by Step. John Sharp

Object-Oriented Programming in C# (VS 2012)

Microsoft ASP.NET Using Visual C# 2008: Volume 2 Table of Contents

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

Microsoft Visual C# Step by Step. John Sharp

Objective of the Course: (Why the course?) Brief Course outline: (Main headings only) C# Question Bank Chapter1: Philosophy of.net

Introduction to Programming Microsoft.NET Applications with Visual Studio 2008 (C#)

Migrate Your Skills to Microsoft.NET Framework 2.0 and 3.0 using Visual Studio 2005 (C#)

Uka Tarsadia University MCA ( 3rd Semester)/M.Sc.(CA) (1st Semester) Course : / Visual Programming Question Bank

Absolute C++ Walter Savitch

Object-Oriented Programming in C# (VS 2015)

2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a) and (b) D. stands for Graphic Use Interaction

The course introduces many of the techniques and technologies employed by modern desktop and enterprise applications, including:

Saikat Banerjee Page 1

B.E /B.TECH DEGREE EXAMINATIONS,

Course Description. Audience. Module Title : 20483B: Programming in C# Duration : 5 days. Course Outline :: 20483B ::

C# Programming in the.net Framework

MCSA Universal Windows Platform. A Success Guide to Prepare- Programming in C# edusum.com

Developing Applications Using Visual Basic 2008: Volume 2

Object-Oriented Programming

Introduction to Microsoft.NET Framework Programming using VS 2005 (C#)

Deitel Series Page How To Program Series

This module reviews the core syntax and features of the C# programming language. It also provides an introduction to the Visual Studio 2012 debugger.

Windows Presentation Foundation Programming Using C#

Programming in Visual Basic with Microsoft Visual Studio 2010

DC69 C# &.NET DEC 2015

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

5/23/2015. Core Java Syllabus. VikRam ShaRma

Introduce C# as Object Oriented programming language. Explain, tokens,

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore

Standard. Number of Correlations

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led

Prerequisites: The student should have programming experience in a high-level language. ITCourseware, LLC Page 1. Object-Oriented Programming in C#

20483BC: Programming in C#

.Net Technologies. Components of.net Framework

C# Programming: From Problem Analysis to Program Design. Fourth Edition

OVERVIEW ENVIRONMENT PROGRAM STRUCTURE BASIC SYNTAX DATA TYPES TYPE CONVERSION

DOT NET Syllabus (6 Months)

ADO.NET Using Visual Basic 2005 Table of Contents

Hierarchical inheritance: Contains one base class and multiple derived classes of the same base class.

"Charting the Course to Your Success!" MOC B Programming in C# Course Summary

Module 1. An Introduction to C# Module 2. Classes and Objects. Vasundhara Sector 14-A, Plot No , Near Vaishali Metro Station,Ghaziabad

Darshan Institute of Engineering & Technology for Diploma Studies

Variable Scope The Main() Function Struct Functions Overloading Functions Using Delegates Chapter 7: Debugging and Error Handling Debugging in Visual

.NET-6Weeks Project Based Training

Programming in C# (20483)

Programming in C# with Microsoft Visual Studio 2010

Mastering VB.NET using Visual Studio 2010 Course Length: 5 days Price: $2,500

C#.Net. Course Contents. Course contents VT BizTalk. No exam, but laborations

Problem Solving with C++

Course Syllabus C # Course Title. Who should attend? Course Description

Microsoft Programming in C#

Programming in C#

Outsource. Laboratories. Introduction to Programming with Microsoft Visual Basic.NET. Outsource Laboratories Press

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Visual C# 2008 How to Program, 3/E Outline

Programming in C# for Experienced Programmers

DIPLOMA IN PROGRAMMING WITH DOT NET TECHNOLOGIES

Microsoft ASP.NET Using Visual Basic 2008: Volume 1 Table of Contents

CHAPTER 1: INTRODUCTION TO THE IDE 3

DOT NET SYLLABUS FOR 6 MONTHS

Developing Microsoft.NET Applications for Windows (Visual Basic.NET)

PES INSTITUTE OF TECHNOLOGY

ASP.NET Web Forms Programming Using Visual Basic.NET

The C# Programming Language. Overview

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 (C#)

"Charting the Course... MOC Programming in C# with Microsoft Visual Studio Course Summary

Chapter 1 Getting Started

Object Oriented Programming with c++ Question Bank

10266 Programming in C Sharp with Microsoft Visual Studio 2010

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

Department of Computer Applications

C# Programming Syllabus

UNIT 1 PART A PART B

Course Description. Learn To: : Intro to JAVA SE7 and Programming using JAVA SE7. Course Outline ::

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

CHAPTER 1 Introduction to Computers and Programming CHAPTER 2 Introduction to C++ ( Hexadecimal 0xF4 and Octal literals 031) cout Object


Murach s Beginning Java with Eclipse

CO Java SE 8: Fundamentals

Short Notes of CS201

(800) Toll Free (804) Fax Introduction to Java and Enterprise Java using Eclipse IDE Duration: 5 days

Introduction to Programming Microsoft.NET Framework Applications with Microsoft Visual Studio 2005 Course #MS4994A 5 Days COURSE OUTLINE

6 Months Training Module in.net Module 1-Total Days-20

DOT NET COURSE BROCHURE

CS201 - Introduction to Programming Glossary By

CHAPTER 1: VISUAL STUDIO

SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM ( )

3.Constructors and Destructors. Develop cpp program to implement constructor and destructor.

Framework Fundamentals

CHAPTER 1: INTRODUCING C# 3

Introduction to programming

Chapter 2. Building Multitier Programs with Classes The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Transcription:

Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Installation...INTRO-3 Demonstration Applications...INTRO-3 About the Authors...INTRO-4 GETTING STARTED WITH.NET...1-1 Thinking about.net...1-2 What Is.NET?...1-2 Why.NET?...1-3 Advantages of.net...1-3.net Architecture...1-4 Examining a.net Application: Introducing Assemblies...1-8 What Kinds of Programs Can You Create?...1-9 Using the Command-Line Compiler to Build a Console Application...1-9 Revisiting Microsoft Intermediate Language...1-15 Using Visual Studio 2005...1-18 Working with Your Visual Studio Profile Settings...1-18 Revisiting the.net Console Application...1-26 Debugging and Handling Exceptions...1-41 Handling Errors...1-51 Fixing the Logic Error...1-54 LAB 1: GETTING STARTED WITH.NET...1-59 Lab 1 Overview...1-60 Customize the Visual Studio Environment...1-61 Create a Console Application...1-67 Use Visual Studio Debugging...1-70 DATA TYPES AND VARIABLES...2-1 Introducing Variables and Data Types...2-2 Variables...2-2 Data Types...2-7 TOC-1

Integer Data Types...2-9 Floating-Point Data Types...2-12 Decimal Data Type...2-12 Char Data Type...2-16 String Data Type...2-20 Boolean Data Type...2-20 Date Data Type...2-21 Object Data Type...2-22 Constants, Enumerations, and Structures...2-23 Working with Variables and Data Types...2-28 Converting from One Data Type to Another...2-28 Operators...2-40 LAB 2: DATA TYPES AND VARIABLES...2-59 Lab 2 Overview...2-60 Calculate a Loan Payment...2-61 Compare Gasoline Costs of Cars...2-64 Create a Menu...2-70 USING THE.NET FRAMEWORK...3-1 Using.NET Framework Classes...3-2 Generating Random Numbers...3-4 Getting Information about the Computer...3-6 Working with XML...3-7 File Input/Output...3-12 Working with Strings...3-18 Fields and Properties of the String Class...3-18 Methods of the String Class...3-20 Formatting Strings...3-27 Using the StringBuilder Class...3-32 Working with Dates and Times...3-36 Properties of the DateTime Structure...3-36 Methods of the DateTime Structure...3-39 Using the TimeSpan Structure...3-41 The My Namespace...3-46 My.Application...3-46 My.Computer...3-48 My.User...3-53 LAB 3: USING THE.NET FRAMEWORK...3-59 TOC-2

Lab 3 Overview...3-60 Work with Dates and Times...3-61 Write and Read XML...3-65 Work with Strings...3-70 Create a Menu...3-76 BRANCHING AND FLOW CONTROL...4-1 Branching in Code...4-2 Conditional Branching...4-2 Repeating Code Blocks...4-10 Unbounded Looping...4-10 Looping a Specific Number of Times...4-14 The For Each Loop...4-19 Unconditional Branching...4-21 Exit For/Exit While/Exit Do...4-21 The Goto Statement...4-22 The Continue Statement...4-24 LAB 4: BRANCHING AND FLOW CONTROL...4-33 Lab 4 Overview...4-34 Use a For Loop to List All the Windows Services...4-35 Use a For Each Loop to List All the Windows Services...4-39 Display Service Status Information...4-41 CLASSES AND OBJECTS...5-1 Introducing Objects and Classes...5-2 Revisiting.NET Framework Classes...5-2 Using Class Properties...5-9 Calling Class Methods...5-10 Creating Your Own Classes...5-13 Creating Your First Class...5-14 Adding XML Comments...5-18 Using the Class View Window...5-22 Using the Class Designer...5-23 Investigating the Code...5-33 Adding the Code...5-35 Add another Method and Test the Class...5-39 Working with the Object Test Bench...5-42 Working with Classes...5-46 TOC-3

Value Types vs. Reference Types...5-46 Setting Reference Variables to Nothing and Disposing...5-48 Providing for Deterministic Finalization...5-52 Overriding Object Class Functionality...5-56 Manipulating Object References...5-59 Instance vs. Shared Members...5-61 Thinking More about Shared Members...5-64 LAB 5: CLASSES AND OBJECTS...5-71 Lab 5 Overview...5-72 Create the LogFile Class...5-73 Modify the LogFile Class Using the Class Designer...5-77 PROPERTIES AND METHODS...6-1 Overview of Properties and Methods...6-2 Properties...6-3 Calculating Values for Properties...6-4 Validating Values in Properties...6-7 Passing Arguments to Properties...6-9 Methods...6-13 Passing Arguments to Methods...6-14 Methods in Classes...6-17 Class Constructors...6-18 Saving and Retrieving Information...6-21 Returning and Passing Arrays...6-29 Optional Parameters...6-34 Named Parameters...6-36 Instance and Static Members...6-38 LAB 6: PROPERTIES AND METHODS...6-45 Lab 6 Overview...6-46 Create the Order Class...6-47 Validate and Calculate Property Values...6-55 Save and Retrieve Orders...6-62 OBJECT-ORIENTED TECHNIQUES...7-1 Inheritance...7-2 Derived Classes...7-4 Abstract Classes and Members...7-15 Sealed Classes and Members...7-19 TOC-4

Interfaces...7-22 Implementing an Interface...7-23 Interfaces in the.net Framework...7-24 Organizing Classes...7-27 Partial Classes...7-27 Nested Classes...7-28 Namespaces...7-32 LAB 7: OBJECT-ORIENTED TECHNIQUES...7-39 Lab 7 Overview...7-40 Derived Classes...7-41 Overriding and Overloading Members...7-51 Implement an Interface...7-56 WORKING WITH ARRAYS...8-1 Introducing Arrays...8-2 Creating and Filling Arrays...8-6 Initializing Arrays...8-11 Retrieving Data from Arrays...8-13 Arrays and Method Parameters...8-15 Arrays in the.net Framework...8-17 Manipulating Arrays...8-18 Sorting Arrays...8-19 Allowing for More Flexible Sorting...8-23 Searching in Arrays...8-34 LAB 8: WORKING WITH ARRAYS...8-43 Lab 8 Overview...8-44 Fill and Display an Array with Windows Services...8-45 Sort the Array of Services...8-50 Display a Subset of Services...8-54 DELEGATES AND EVENTS...9-1 Motivating Delegates...9-2 Testing the FileSearch0 Class...9-6 FileSearch1: Modifying the FileSearch0 Class...9-7 FileSearch1a: Inheritance is a Possible Solution...9-9 Using an Event Interface Class...9-11 Introducing Delegates...9-17 Digging Deeper into Delegates...9-21 TOC-5

Delegate vs. MulticastDelegate...9-24 Working with Events...9-27 Doing Things the VB6 Way...9-27 Multiple Event Handlers...9-30 Exceptions and Multiple Event Handlers...9-32 Manually Invoking Each Listener...9-35 Using the.net Event Design Pattern...9-38 Adding and Removing Handlers Dynamically...9-41 LAB 9: DELEGATES AND EVENTS...9-49 Lab 9 Overview...9-50 Use a.net Delegate...9-52 Add a Visual Basic 6-Style Event...9-55 Add a.net-style Event...9-57 GENERICS...10-1 Introducing Generics...10-2 Generic Methods...10-5 Generic Classes...10-8 Advantages of Generics...10-11 Generics and Arrays...10-13 Sorting Arrays...10-13 Sorting with the IComparer Interface...10-15 Sorting with Generic Comparisons...10-18 Searching with Generic Predicates...10-22 Generic Interfaces...10-26 Generic Constraints...10-30 Generics and Lists...10-36 Using an ArrayList to Store a Collection of Items...10-36 Using a Generic List to Store a Collection of Items...10-39 Sorting with the List Class...10-40 LAB 10: GENERICS...10-45 Lab 10 Overview...10-46 Sorting and Searching Arrays with Generics...10-47 Using Generic Interfaces and Constraints...10-56 Managing Collections with Generic Lists...10-63 HANDLING EXCEPTIONS...11-1 Perspectives on Exception Handling...11-2 TOC-6

Exception Handling in.net...11-2 The Demonstration Code...11-4 Getting Started with Exception Handling...11-5 No Error Handling...11-5 Adding a Simple Try/Catch Block...11-8 Unhandled Exceptions...11-9 Using an Exception Object...11-10 Catching Specific Exceptions...11-14 Understanding the Exception Hierarchy...11-17 Raising Errors...11-20 Using the Throw Keyword...11-20 Exception-Handling Options...11-21 Passing Error Information...11-21 Running Code Unconditionally...11-25 The Finally Block...11-25 Cleaning Up: The Using Statement...11-27 Creating Exception Classes...11-29 LAB 11: HANDLING EXCEPTIONS...11-35 Lab 11 Overview...11-36 Add Simple Exception Handling...11-37 Handle Individual Exceptions...11-42 Run Code Unconditionally...11-48 COLLECTION CLASSES...12-1 Generics, Collections, and Interfaces...12-2 Introducing the Generic Collection Interfaces...12-2 The Generic List...12-7 Working with the List Class...12-8 Working with Predicates...12-43 Working with Dictionaries, Stacks, and Queues...12-55 Storing Key/Value Pairs Using a Dictionary...12-56 Using the SortedDictionary and SortedList Classes...12-62 Using Queues and Stacks...12-70 Creating Your Own Generic Collection Classes...12-76 Sample Scenario...12-77 Creating the Custom Collection Class...12-78 Consuming the Custom Collection...12-82 TOC-7

LAB 12: COLLECTION CLASSES...12-89 Lab 12 Overview...12-90 Create and Fill SortedDictionary...12-92 Add List with File Information...12-97 Sort the FileInfo List...12-99 INDEX...INDEX-1 TOC-8