Visual Basic.NET and the.net Platform: An Advanced Guide

Size: px
Start display at page:

Download "Visual Basic.NET and the.net Platform: An Advanced Guide"

Transcription

1 Visual Basic.NET and the.net Platform: An Advanced Guide ANDREWTROELSEN APress Media, LLC

2 Visual Basic.NET and the.net Platform: An Advanced Guide Copyright 2002 by Andrew'Ii'oelsen Originally published by Apress in 2002 All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher. ISBN ISBN (ebook) DOI / Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. Editorial Directors: Dan Appleman, Gary Cornell, Jason Gilmore, Karen Watterson Technical Reviewers: Pamela Fanstill, Rob Macdonald, Dan Appleman, William Oellermann Managing Editor: Grace Wong Copy Editors: Anne Friedman, Nicole LeClerc Production Editors: Janet Vail with Kari Brooks and Anne Friedman Composition and Art Services: Impressions Book and Journal Services, Inc. Indexer: Carol Burbo Cover Designer: Tom Debolski Marketing Manager: Stephanie Rodriguez Distributed to the book trade in the United States by Springer-Verlag New York, lnc.,175 Fifth Avenue, New York, NY, and outside the United States by Springer-Verlag GmbH & Co. KG, Tiergartenstr. 17, Heidelberg, Germany In the United States, phone SPRINGER, orders@springer-ny. com, or visit http: I lwww. springer-ny. com. Outside the United States, fax , orders@springer. de, or visit http: I lwww. springer. de. For information on translations, please contact Apress directly at 901 Grayson Street, Suite 204, Berkeley, CA Phone , fax: , info@apress.com, or visit The information in this book is distributed on an "as is" basis, without warranty. Although every precaution has been taken in the preparation of this work, neither the author nor Apress shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the information contained in this work. The source code for this book is available to readers at http: I lwww. a press. com in the Downloads section. You will need to answer questions pertaining to this book in order to successfully download the code.

3 This book is dedicated to the memory of the thousands of people who lost their lives during the tragic events that took place on September 11, Of exactly equal importance, this book is dedicated to each and every individual who worked around the clock, without limits, to bring some degree of normalcy back to New York, Pennsylvania, and Washington D. C. Thank you for your strength, inspiration, and relentless commitment. Thank you for engaging the unimaginable.

4 Contents at a Glance What You Need to Use This Book.... xv Acknowledgments.... xxii Introduction.... xviii Chapter 1 The Philosophy of NET Chapter 2 Building Visual Basic NET Applications Chapter 3 VB.NET Language Fundamentals Chapter 4 Object-Oriented Programming with VB.NET Chapter 5 Interfaces and Collections Chapter 6 Delegates, Events, and Callback Interfaces Chapter 1 Assemblies, Threads, and AppDomains Chapter 8 Type Reflection and Attribute-Based Programming Chapter 9 Building a Better Window (Introducing Windows Forms) Chapter 10 A Better Painting Framework (GDI+) Chapter 11 Programming with Windows Form Controls Chapter 12 Input, Output, and Object Serialization Chapter 13 Interacting with Unmanaged Code Chapter 14 Data Access with ADO.NET Chapter 15 Web Development and ASP. NET Chapter 16 Building (and Understanding) Web Services Index iv

5 Contents What You Need to Use This Book.... xv Acknowledgments.... xxii Introduction.... xviii Chapter 1 The Philosophy of NET Understanding the Current State of Affairs The NET Solution Building Blocks of.net (CLR, CTS, and CLS)... 6.NET -Aware Programming Languages... 7 What VB NET Brings to the Table... 9 An Overview of.net Binaries (aka Assemblies) The Role of Microsoft Intermediate Language The Role of Metadata Compiling IL to Platform-Specific Instructions NET Types and NET Names paces Understanding the Common Language Runtime Understanding the Common Type System Understanding the Common Language Specification Working with Namespaces A Tour of the NET Name spaces Referencing External Assemblies Increasing Your Namespace Nomenclature Summary Chapter 2 Building Visual Basic.NET Applications Building VB.NET Applications Using the Command Line Compiler Building Your First VB.NET Application v

6 Contents Building VB.NET Applications Using the Visual Studio NET IDE Building Your VS.NET Test Application Configuring a VB.NET Project The Properties Window Adding Some Code What Happened to the World of VB 6.0? Upgrading VB 6.0 Projects into VB.NET The Microsoft.VisualBasic.Compatability.VB6 Namespace Should You Upgrade? Summary Chapter 3 VB NET Language Fundamentals The Role of the Module Type The Main Method Data Types and Variable Declarations Experimenting with the System Data Types Data Type Conversions Concatenation Operators Basic Input and Output with the Console Class Introducing VB NET String Formatting Anatomy of a Simple VB. NET Class Creating Objects: Constructor Basics Default Values Defining Program Constants Understanding Value Types and Reference Types The Master Node: System.Object VB NET Iteration Constructs VB.NET Control Flow Constructs Additional VB.NET Operators Defining Custom Class Methods Method Parameter Modifiers (ByRef and ByVal) Shared Methods Static (Not Shared) Data Array Manipulation in VB NET String Manipulation in VB.NET VB.NET Enumerations Defining Structures in VB NET Defining Custom Namespaces Summary vi

7 Contents Chapter 4 Object-Oriented Programming with VB. NET A Catalog of VB NET 00-Centric Keywords Formal Definition of the VB.NET Class Member Overloading Defining the Default Public Interface Pillars of OOP The First Pillar: VB.NET's Encapsulation Services Pseudo-Encapsulation: Creating Read-Only Fields The Second Pillar: VB.NET's Inheritance Support Keeping Family Secrets: The "Protected" Keyword Nested Type Definitions The Third Pillar: VB NET's Polymorphic Support Casting between Class Types {CType) Exception Handling Understanding Object Lifetime Finalizing an Object Reference Building an Ad Hoc Destruction Method Interacting with the Garbage Collector Summary Chapter 5 Interfaces and Collections Understanding Interface-Based Programming Building a Custom Enumerator {!Enumerable and!enumerator) Building Cloneable Objects {ICloneable) Building Comparable Objects {!Comparable) Exploring the System.Collections Namespace Summary Chapter 6 Delegates, Events, and Callback Interfaces A Quick Recap of Events a la VB Designing an Event Interface The VB. NET Delegate Keyword The Simplest Possible Example Building a More Elaborate Delegate Example vii

8 Contents Understanding (and Using) Events Summary Problems with Classic COM Binaries An Overview of NET Assemblies Building a Single File Test Assembly A VB. NET Client Application A C# Client Application Cross-Language Inheritance Exploring the CarLibrary' s Manifest Exploring the CarLibrary' s Types Building Multi file Assemblies Understanding Private Assemblies Probing Basics Understanding Shared Assemblies Understanding Shared Names Using a Shared Assembly Understanding. NET Version Policies Recording Version Information Building SharedAssembly Version Specifying Custom Version Policies Using the.net Administrative Tool (mscorcfg.msc) The Ngen.exe Utility Review of Traditional Win32 Thread Programming Understanding System.AppDomain System. Threading Names pace Naming Threads Concurrency Revisited The VB.NET "Sync Lock" Keyword Using System. Threading. Interlocked Summary Chapter 8 Type Reflection and Attribute-Based Programming Understanding Reflection The System. Type Class Investigating the System. Reflection Names pace Dynamically Loading an Assembly Understanding Dynamic Invocation (Late Binding) Understanding (and Building) Dynamic Assemblies Understanding Attributed Programming viii

9 Contents Building Custom Attributes The VB.NET "Assemblyinfo.vb" File Discovering Attributes at Runtime Summary Chapter 9 Building a Better Window (Introducing Windows Forms) A Tale of Two GUI Names paces Overview of the Windows Forms Names pace Building a Windows Forms Application by Hand Building a Visual Studio.NET Windows Forms Project Workspace The System. Windows. Forms. Application Class The Anatomy of a Form Basic Form Functionality The System. ComponentModel. Component Class The Control Class Control Events Responding to Keyboard Events The Control Class Revisited The ScrollableControl Class ContainerControl Class The Form Class Building Menus with Windows Forms Building Your Menu System Building a Menu Using Visual Studio NET Understanding Status Bars Building a Status Bar Using Visual Studio NET Building a ToolBar Building ToolBars at Design Time A Minimal and Complete Windows Forms Application Interacting with the System Registry Interacting with the Event Viewer Building an MDI Application Summary ix

10 Contents Chapter 10 A Better Painting Framework (GDI+) Remembering the World of VB 6.0 Graphics Programming Survey of the GDI+ Namespaces Overview of the System.Drawing Namespace Configuring a GDI+ Project Workspace Examining the System.Drawing Utility Types Understanding Paint Sessions Understanding the Graphics Class Default GDI+ Coordinate System Establishing an Active Color Manipulating Fonts Survey of the System. Drawing. Drawing2D Names pace Working with Pens Rendering Images Dragging, Hit Testing, and the PictureBox Control Understanding the NET Resource Format System. Resources Names pace Working with ResourceWriters Working with ResourceManagers Automatic Resource Configuration ala Visual Studio.NET Summary Chapter 11 Programming with Windows Form Controls Understanding the Windows Forms Control Hierarchy Adding Controls to Forms (the Hard Way) Adding Controls to Forms {the Easy Way) The TextBox Control The Mighty Button Type (and the ButtonBase Parent Class) Working with CheckBoxes Working with RadioButtons and GroupBoxes ListBoxes and ComboBoxes Configuring the Tab Order The TrackBar Control The MonthCalendar Control More on the System.DateTime Type The Spin Controls: DomainUpDown and NumericUpDown Working with Panel Controls Assigning Tool Tips to Controls X

11 Contents Working with the ErrorProvider Configuring a Control's Anchoring Behavior Configuring a Control's Docking Behavior Building Custom Dialog Boxes Form Inheritance Understanding Custom Controls The Class, Control, UserControl, and Component Distinction Building a Custom UserControl Creating the Images Building the Design Time GUI Establishing the Default Public Sector Defining the Custom Events Supporting Custom Properties Controlling the Animation Building a VB NET Client Application Select Members of the System.ComponentModel Namespace Enhancing the Design Time Appearance of CarControl Building a.net (Data) Component Connecting to the Cars Database Using Your Custom Component Summary Chapter 12 Input, Output, and Object Serialization Exploring the System. IO Namespace The Directory(Info) and File(Info) Types Enumerating Files with the Directoryinfo Type Creating Subdirectories with the Directoryinfo Type The Shared Members of the Directory Class The Fileinfo Class The Abstract Stream Class Working with StreamWri ters and StreamReaders Working with StringWri ters Working with StringReaders Working with Binary Data (BinaryReaders and BinaryWriters) Object Persistence in the.net Framework The Role of Object Graphs Configuring Objects for Serialization Serialization Using a Binary Formatter Serialization Using a SOAP Formatter xi

12 Contents Custom Serialization (and the ISerializable Interface) A Windows Forms Car Logger Application Summary Chapter 13 Interacting with Unmanaged Code Understanding Interoperabili ty Issues A Painfully Simple Example: VB.NET Applications Communicating with VB 6.0 COM Types The System. Runtime. InteropServices Namespace Understanding.NET to COM Interoperability The Role of COM IDL Importing the Type Library Examining the Generated Assembly Manifest Building a More Interesting VB 6.0 COM Server Examining the Interop Assembly The Complete VB NET Client Understanding COM to. NET Interoperability The Role of the CCW Understanding the ((Class Interface" Building Your NET Type Generating the Type Library and Registering the.net Types Examining the Exported Type Information Viewing the Type Using the OLE/COM Object Viewer Examining the Registration Entries Building a Visual Basic 6.0 Test Client NET to COM Mapping Issues Controlling the Generated IDL (or Influencing Tlbexp.exe) Interacting with COM+ Component Services Building COM+-Aware Types Building a COM+-Aware VB NET Type Examining the Component Services Explorer Summary Chapter 14 Data Access with ADO.NET The Need for ADO. NET Understanding the ADO.NET Namespaces The Types of System. Data Examining the DataColumn Type xii

13 Contents Examining the Data Row Type Details of the Data Table Building a Complete Data Table Understanding the DataView Type Understanding the Role of the DataSet Expressing Relations Using the Data Relation Type Reading and Writing XML-Based DataSets Building a Simple Test Database ADO.NET Managed Providers Working with the OleDb Managed Provider The Role of the OleDbDataAdapter Type Working with the SQL Managed Provider Autogenerated SQL Commands Filling a Multitabled DataSet (and Adding DataRelations) Bring in the Wizards! Summary Chapter 15 Web Development and ASP. NET Web Applications and Web Servers The Basic Structure of an HTML Document Basic HTML Text Formatting Visual Studio '.NET HTML Editors HTML Form Development The Role of Client-Side Scripting Submitting the Form Data (GET and POST) Building a Classic Active Server Page Building Your First Official ASP. NET Application Some Problems with Classic ASP Some Benefits of ASP. NET The ASP. NET Name spaces Creating a Simple VB NET Web Application The Architecture of an ASP.NET Web Application Understanding the Application/Session Distinction The Globals.asax File and HttpApplication Type The Life Cycle of a Page-Derived Type Understanding ViewS tate Debugging and Tracing ASP.NET Applications Understanding the Benefits of Web Form Controls Working with Web Form Controls Categories of Web Form Controls xiii

14 Contents Understanding Server-Side Event Handling A Complete ASP o NET Example Summary Chapter 16 Building (and Understanding) Web Services Understanding the Role of Web Services The Anatomy of a Web Service An Overview of the Web Service Names paces Examining the System o Web o Services Names pace Building a Simple Web Service The WebMethodAttribute Type Understanding the Web Service Description Language {WSDL) Web Service Invocation Protocols WSDL into VB o NET Code (Generating a Proxy) Building the Assembly Building a Client Generating a Proxy with VSoNET A More Interesting Web Service (and Web Client) Serialization of Custom Types (Further Details) Understanding the Discovery Service Protocol Summary Index xiv

15 What Need to This Book You Use THE VERY FIRST THING you must do before you dig in is download the accompanying source code for this book from the Apress Web site (http: I / As you read over each chapter, you find the following icon has been liberally scattered throughout the text: This is your visual cue that the example under discussion may be loaded into Visual Studio.NET for examination. In addition to the source code, you need to have a copy of.net Beta 2. In this text, I have chosen to focus primarily on using the Visual Studio.NET development environment. Although you are free to build and compile your code using nothing more than the VB.NET compiler (which is included with the.net SDK) and Notepad.exe, you will find that VS.NET takes care of a number of low-level details on your behalf. Finally, understand that this is an advanced text geared toward the seasoned software professional. The goals of this text are not to labor over each and every detail of the "For" loop, examine each and every menu selection of the Visual Studio.NET IDE, or describe all ten steps of a given VS.NET wizard. My assumption is that you are well equipped to explore the IDE and have no problem activating menu options. On the other hand, I assume no foreknowledge ofvb.net or the.net platform. In particular, this book is well suited for individuals possessing the following traits: You are an experienced software professional who has solid background in some modern-day programming language (Visual Basic, C++, Java, and so on). You are unafraid to consult online Help, build sample programs, and explore.net on your own terms (and do so often without shame). Even a book of this size cannot possibly cover each and every aspect of the.net platform. The online Help that ships with the.net SDK is incredibly XV

16 What You Need to Use This Book readable, and it provides numerous code examples, white papers, and online tutorials. Once you have read (and understood) these sixteen chapters, you will be in a perfect position to build complete.net solutions with the VB.NET language. At this point, online Help will become your faithful companion that extends and complements the material presented here. So, let's get on with the show! It is my sincere hope that this book will guide you safely through the.net universe and serve as a solid reference during your life as an author of managed code usingvb.net. Andrew Troelsen Minneapolis, Minnesota xvi

17 Acknowledgments FmsT, MANY THANKS to Gary Cornell and Dan Appleman, who encouraged me to translate my first Apress publication ( C# and the.net Platform) into the vernacular ofvisual Basic. A solid (and affectionate) thanks to Grace Wong and Stephanie Rodriguez, who again kept me honest and provided a fantastic working environment (see you at the PDC!). A special thanks to Carol Burbo for working with an incredibly tight deadline in order to index this material. A mammoth amount of gratitude to the editorial staff: Anne Friedman (glad to work with you again Anne! See you on book number three?), Nicole LeClerc, Christie Roden, Janet Vail, and Kari Brooks, who all did an outstanding job editing, formatting, and massaging the knots out of my original manuscript. Thanks for your focus and clarity during the course of this project. I also must offer heartfelt thanks to my primary technical editor, Pam Fanstill. Thanks for laboring over each and every line of syntax and pointing out the lingering C# tokens that escaped my view. Your work was phenomenal (honest). Additional huge thanks are extended to Dan Appleman, Rob Macdonald, and William Oellermann for offering additional technical reviews (and numerous insights). Any remaining faux pas are my sole responsibility. Thanks to my fellow cohorts at Intertech-Inc.: Steve Close, Gina McGhee, Andrew "Gunner" Sondgeroth, and Tom Barnaby, who, while working on their own books, provided an encouraging, intense, and positive environment. As well, thanks to Tom Salonek for just being Tom (remember, always bring more beer). Finally, thanks and love to Mary and Wally Troelsen (aka Mom and Dad), and my wife, friend, and confidant, Amanda. I hope you all know how much your support means to me. xvii

18 Introduction MicRosoFT's.NET PlATFORM represents an entirely new way to build distributed, desktop, and mobile applications. One thing to be painfully aware of from the outset is that the.net platform has nothing at all to do with classic COM, VB 6.0, ATL, or any other pre-.net frameworks. For example, as you read over this text, you will find that.net types do not support!unknown, are not cataloged in the system registry, and are not described using COM type libraries. Understand that these COM primitives have not simply been hidden away from view-they no longer exist. Given that.net is such a radical departure from the current modus operandi ofwin32 development, Microsoft has developed a new language named C# (pronounced "see-sharp") specifically for this new platform. C#, like Java, has its syntactic roots in C++. However, C# has also been influenced by Visual Basic 6.0, specifically with regard to the use of class properties, "for each'' -like iteration, and the IDE itself. Nevertheless, given that C# still uses numerous C++-like tokens (semicolons, colons, and curly brackets), many die-hard VBers may find the syntax of C# a bit unpalatable. The good news is that in addition to the advent of C#, Microsoft has also shipped a brand-new update of the ever-popular Visual Basic programming language termed VB.NET, which is also specifically geared toward the development of.net applications. As you move through this text, you will see that VB.NET is not simply an upgrade from VB 6.0. Rather, VB.NET can best be understood as a brandnew programming language that just happens to look suspiciously like earlier iterations of the language. If you feel this last statement is a bit alarmist in nature, consider the following (partial) sampling of new constructs offered by VB.NET: Unlike VB 6.0, VB.NET supports class constructors, implementation inheritance, classical polymorphism, and method overloading. VB.NET allows developers to natively build multithreaded applications (which could be achieved to some degree in VB 6.0, if you were willing to drop down to the raw Win32 API). Unlike previous versions ofvisual Basic, VB.NET supports the development of extremely robust graphical-based (as opposed to GUI-based) applications using a facility termed GDI+. VB.NET supports new data types (System. Object), removes other data types (the Variant), and has reworked current language constructs (class xviii

19 Introduction properties, strings, arrays, enumerations, and class types) to bring Visual Basic up to snuff with the.net architecture. Despite these (and other) substantial changes, VB.NET still supports the key features that have established Microsoft Visual Basic as the most popular programming language to date. For those of you who have worked with earlier editions ofvb, you will notice many key similarities. On a related note, once you learn the syntax and semantics ofvb.net, you find that the process oflearning additional.net-aware languages (such as C#) is painfully simple. The truth of the matter is that.net is an extremely languageagnostic platform. You can make use of any.net-aware language (and possibly numerous.net-aware languages) during the development of your next coding effort. In this vein, your greatest challenge is not necessarily learning the VB.NET language, but rather coming to terms with the numerous types defined in the.net base class libraries. Once you understand how to leverage the existing code base, you find that the concept of "syntax" becomes a nonissue given that all.net-aware languages make use of the same base class types. This is also a good thing, given that you should be able to move swiftly between various.net languages with minimal fuss and bother. The goals of this text are to provide a solid foundation of the syntax and semantics ofvb.net, as well as the architecture of the.net platform. As you read through the (many) pages that follow, you are exposed to each major facet of the.net base class libraries. Let's take a high-level overview of each chapter. Chapter 1: The Philosophy of.net Chapter 1 functions as the backbone for this text. The first task of the chapter is to examine the world ofwmdows development as we know it today and review the shortcomings of the current state of affairs. However, the primary goal is to acquaint you with the meaning behind a number of.net-centric building blocks, such as the Common Language Runtime (CLR), the Common Type System (CTS), the Common Language Specification (CLS), and the base class libraries. In addition, this chapter introduces you to a set of core tools ULDasm.exe, WmCV.exe, and so on) that allow you to explore the.net class libraries at your leisure. Chapter 2: Building VB.NET Applications Chapter 2 begins with an examination of how to interact with the VB.NET compiler (vbc.exe) in the raw. As you see later in the text, some advanced aspects of VB.NET (such as building multifile assemblies) are only accessible from the xix

20 Introduction command-line compiler. Given this fact, spending the time to build some simple VB.NET applications by hand will serve you well. The later half of this chapter illustrates the core features of the Visual Studio.NET IDE. To wrap things up, you examine the pros and cons of converting existing VB 6.0 code into the.net paradigm. Chapter 3: VB.NET Language Fundamentals The goal of Chapter 3 is to showcase the core syntax of the VB.NET programming language. As you would hope, you are introduced to the intrinsic data types ofvb.net as well as the set of iteration and decision constructs. More important, you learn about the composition of a VB.NET class, and you make friends with a number of new.net techniques, such as value and reference types, namespace development, and the role of the mighty System. Object. Chapter 4: Object-Oriented Programming with VB.NET Now that you can build complex stand-alone types, Chapter 4 focuses on the pillars of object technology: encapsulation, inheritance ("is-a" and "has-a''), and polymorphism (classical and ad hoc). The chapter begins with a high-level examination of these key terms, and then quickly turns its attention to exploring how VB.NET supports each pillar. Along the way, you are exposed to new syntax used to define class properties, and you learn the ins and outs of developing class hierarchies. Finally, this chapter examines a new mechanism to handle runtime anomalies: Structured Exception Handling. The chapter ends with a discussion of the.net garbage collection scheme, and you see how to programmatically interact with this service using the System.GC class type. Chapter s: Interface and Collections Like C++, Java, and VB 6.0, VB.NET supports the technique of interface-based programming. In this chapter you learn the role of an interface and understand how to define and implement such a creature in VB.NET. Once you can build types that support multiple interfaces, you learn a number of techniques you can use to obtain an interface reference from a valid type instance. The second half of this chapter examines a number of predefined interfaces defined within the.net XX

21 Introduction class libraries and illustrates how to make use of the System. Collections namespace to build custom container types. You also learn how to build "cloneable" and "enumerable" types. Chapter 6: Delegates, Events, and Callback Interfaces This chapter rounds out your understanding of core OOP using VB.NET. To begin, you review the classic VB 6.0 event protocol, and you quickly see that VB.NET makes use of the same core keywords (Event, WithEvents, and RaiseEvent) to enable bidirectional communication. Under the hood, however, the.net event architecture is founded on the use of delegates. The bulk of this chapter is spent examining the use of this type and several related topics, such as hooking into events dynamically at runtime using the new AddHandler and RemoveHandler statements. Chapter 7: Assemblies, Threads, and AppDomains At this point you should be very comfortable building stand-alone VB.NET applications. This chapter illustrates how to break apart a monolithic EXE into discrete code libraries. Here, you learn about the internal composition of a.net assembly and understand the distinction between "shared" and "private" assemblies. This entails a discussion of the Global Assembly Cache (GAC), XML configuration files, and side-by-side execution. To further illustrate the virtues of the CLR, this chapter also examines cross-language inheritance using C# and (gasp!) C++. The chapter wraps up with an examination of how to construct multithreaded applications using VB.NET. Chapter 8: Reflection and Attributes Reflection is the process of runtime type discovery. This chapter examines the details behind the System. Reflection namespace and illustrates how to investigate the contents of an assembly on the fly. On a related note, you learn how to build an assembly (and its contained types) at runtime using the System.Reflection.Emit namespace. Chapter 8 also illustrates how to exercise late binding to a.net type and dynamically invoke its members. Finally, the chapter wraps up with a discussion of attribute-based programming. As you will see, this technique allows you to augment compiler-generated metadata with application-specific information. xxi

22 Introduction Chapter 9: Building a Better Window (Introducing Windows Forms) Despite its name, the.net platform has considerable support for building traditional desktop applications. In this chapter, you come to understand how to build a stand-alone main window using the types contained in the System.Windows.Forms namespace. Once you understand the derivation of a Form, you then learn to add support for topmost and pop-up menu systems, toolbars, and status bars. As an added bonus, this chapter also examines how to programmatically manipulate the system registry and Windows 2000 event log. Chapter 10: A Better Painting Framework (GDI+) For the first time in VB's rich ten-year history, programmers are given the tools they need to build exotic, graphics-intensive applications. This chapter teaches you how to render geometric images, bitmaps, and complex textual images onto the Form's client area using VB.NET. On a related note, you learn how to drag images within a Form (in response to mouse movement), as well as how to perform hit tests against geometric regions (in response to mouse clicks). This chapter ends with an examination of the.net resource format which, as you might assume, is based on XML syntax. Chapter 11: Programming with Windows Form Controls This final chapter on Windows Forms examines how to program with the suite of GUI widgets provided by the.net Framework. Here, you discover details behind the Calendar, Data Grid, and input validation controls, in addition to the vanilla-flavored TextBox, Button, and ListBox types (among others). In addition, you learn how to build custom.net controls (and components) using VB.NET. The chapter wraps up with an examination of how to build custom dialog boxes and MDI applications, and you come to understand a new technique termed Form inheritance. Chapter 12: Input, Output, and Object Serialization The.NET Framework provides a number of types devoted to 10 activities. In this chapter you learn how to save and retrieve simple data types to (and from) files, memory locations, and string buffers. Of greater interest is the use of object serialization services. Using a small set of predefined attributes and a corresponding object graph, the Framework is able to persist related objects using an XML or xxii

23 Introduction binary formatter. To illustrate object serialization at work, this chapter wraps up with a Windows Forms application that allows the end user to create and serialize custom class types for use at a later time. Chapter 13: Interacting with Unmanaged Code As bizarre as it may seem, Microsoft's Component Object Model (COM) can now be regarded as a legacy technology. As you most certainly know by this point in the book, the architecture of COM bears little resemblance to that of.net. This chapter examines the details of how COM types and.net types can live together in harmony through the use of COM Callable Wrappers (CCW) and Runtime Callable Wrappers (RCW). Here, you see how various COM constructs such as SAFEARRAYs, COM events, and COM enumerations map into VB.NET code. The chapter concludes by examining how to build.net types that can take advantage of the COM+ runtime. Chapter 14: Data Access with ADO.NET To be perfectly blunt, ADO.NET bears little resemblance to classic ADO proper. As you discover, ADO.NET is a data access model specifically built for the disconnected world. To begin, you learn how to create and populate an in-memory DataSet and establish relationships between the internal Data Tables. The second half of this chapter examines how to make use of the OleDb and Sql managed providers to obtain access to relational database management systems such as Microsoft Access and SQL Server. Once you understand how to connect to a given data store, you learn how to insert, update, and remove data records as well as trigger logic contained within stored procedures. Chapter 15: Web Development and ASP.NET For the sake of completeness, this chapter begins with an overview of the Web programming model and examines how to build Web front ends (using HTML), how to perform client-side validation (using JavaScript), and how to request a response from a classic ASP Web application. Of course, if you are already "Web aware," you are free to skip these initial pages entirely. The bulk of the chapter provides a solid introduction to the ASP.NET architecture. Here, you learn about Web Controls, server-side event handling, and the core properties of the Page type (including the Request and Response properties). As you would hope, you learn how to build a Web-enabled front end that is able to display (and manipulate) data retrieved using ADO.NET. xxiii

24 Introduction Chapter 16: Building (and Understanding} Web Services In this final chapter of this book, you examine the role of.netweb services. Simply put, a "Web service" is a unit of code that is activated using standard HTTP. Here you examine the surrounding technologies (WSDL, SOAP, and discovery services) that enable a Web service to take incoming client requests. Once you understand how to construct a VB.NET Web service, you then learn how to build a client-side proxy class, which hides the low-level SOAP logic from view. xxiv

Contents. Introducing C# and the.net Platform...1

Contents. Introducing C# and the.net Platform...1 About the Author... xxi Acknowledgments... xxiii Introduction...xxv Part One Introducing C# and the.net Platform...1 Chapter 1 The Philosophy of.net... 3 Understanding the Previous State of Affairs...

More information

An Introduction to Object-Oriented Programming with Visual Basic.NET

An Introduction to Object-Oriented Programming with Visual Basic.NET An Introduction to Object-Oriented Programming with Visual Basic.NET DAN CLARK APress Media, LLC An Introduction to Object-Oriented Programming with Visual Basic.NET Copyright 2002 by Dan Clark Originally

More information

Apex TG India Pvt. Ltd.

Apex TG India Pvt. Ltd. (Core C# Programming Constructs) Introduction of.net Framework 4.5 FEATURES OF DOTNET 4.5 CLR,CLS,CTS, MSIL COMPILER WITH TYPES ASSEMBLY WITH TYPES Basic Concepts DECISION CONSTRUCTS LOOPING SWITCH OPERATOR

More information

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.)

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.) 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.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In-

More information

DOT NET Syllabus (6 Months)

DOT NET Syllabus (6 Months) DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL

More information

A Programmer's Guide to

A Programmer's Guide to J2EE FrontEnd Technologies: A Programmer's Guide to Servlets, JavaServer Pages, and Enterprise JavaBeans LENNART JGRELID APress Media, LLC J2EE FrontEnd Technologies: A Programmer's Guide to Servlets,

More information

Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies

Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies Microsoft.NET Programming (C#, ASP.NET,ADO.NET, VB.NET, Crystal Report, Sql Server) Goal: Make the learner proficient in the usage of MS Technologies for web applications development using ASP.NET, XML,

More information

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

Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Course Number: 2565 Length: 5 Day(s) Certification Exam This course will help you prepare for the following Microsoft Certified Professional

More information

Companion ebook Available Pro Android Includes Android 1.5 SOURCE CODE ONLINE US $44.99

Companion ebook Available Pro Android Includes Android 1.5 SOURCE CODE ONLINE US $44.99 The EXPERT s VOIce in Open Source Pro Android Covers Google s Android Platform and its fundamental APIs, from basic concepts such as Android resources, intents, and content providers to advanced topics

More information

CHAPTER 1: INTRODUCING C# 3

CHAPTER 1: INTRODUCING C# 3 INTRODUCTION xix PART I: THE OOP LANGUAGE CHAPTER 1: INTRODUCING C# 3 What Is the.net Framework? 4 What s in the.net Framework? 4 Writing Applications Using the.net Framework 5 What Is C#? 8 Applications

More information

Contents. Using Interpreters... 5 Using Compilers... 5 Program Development Life Cycle... 6

Contents. Using Interpreters... 5 Using Compilers... 5 Program Development Life Cycle... 6 Contents ***Introduction*** Introduction to Programming... 1 Introduction... 2 What is a Program?... 2 Role Played by a Program to Perform a Task... 2 What is a Programming Language?... 3 Types of Programming

More information

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

Mastering VB.NET using Visual Studio 2010 Course Length: 5 days Price: $2,500 Mastering VB.NET using Visual Studio 2010 Course Length: 5 days Price: $2,500 Summary Each day there will be a combination of presentations, code walk-throughs, and handson projects. The final project

More information

Programming VB.NET: A Guide for Experienced Programmers

Programming VB.NET: A Guide for Experienced Programmers Programming VB.NET: A Guide for Experienced Programmers GARY CORNELL AND JONATHAN MORRISON APress Media, LLC Programming VB.NET: A Guide for Experienced Programmers Copyright 2002 by Gary Cornell OriginaLLy

More information

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

PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO Course: 10550A; Duration: 5 Days; Instructor-led CENTER OF KNOWLEDGE, PATH TO SUCCESS Website: PROGRAMMING IN VISUAL BASIC WITH MICROSOFT VISUAL STUDIO 2010 Course: 10550A; Duration: 5 Days; Instructor-led WHAT YOU WILL LEARN This course teaches you

More information

.NET-6Weeks Project Based Training

.NET-6Weeks Project Based Training .NET-6Weeks Project Based Training Core Topics 1. C# 2. MS.Net 3. ASP.NET 4. 1 Project MS.NET MS.NET Framework The.NET Framework - an Overview Architecture of.net Framework Types of Applications which

More information

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

C# Programming: From Problem Analysis to Program Design. Fourth Edition C# Programming: From Problem Analysis to Program Design Fourth Edition Preface xxi INTRODUCTION TO COMPUTING AND PROGRAMMING 1 History of Computers 2 System and Application Software 4 System Software 4

More information

Programming in Visual Basic with Microsoft Visual Studio 2010

Programming in Visual Basic with Microsoft Visual Studio 2010 Programming in Visual Basic with Microsoft Visual Studio 2010 Course 10550; 5 Days, Instructor-led Course Description This course teaches you Visual Basic language syntax, program structure, and implementation

More information

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

Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Developing Microsoft.NET Applications for Windows (Visual Basic.NET) Course Number: 2555 Length: 1 Day(s) Certification Exam This course will help you prepare for the following Microsoft Certified Professional

More information

INTERNAL ASSESSMENT TEST 1 ANSWER KEY

INTERNAL ASSESSMENT TEST 1 ANSWER KEY INTERNAL ASSESSMENT TEST 1 ANSWER KEY Subject & Code: C# Programming and.net-101s761 Name of the faculty: Ms. Pragya Q.No Questions 1 a) What is an assembly? Explain each component of an assembly. Answers:-

More information

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

COPYRIGHTED MATERIAL. Contents. Part I: C# Fundamentals 1. Chapter 1: The.NET Framework 3. Chapter 2: Getting Started with Visual Studio Introduction XXV Part I: C# Fundamentals 1 Chapter 1: The.NET Framework 3 What s the.net Framework? 3 Common Language Runtime 3.NET Framework Class Library 4 Assemblies and the Microsoft Intermediate Language

More information

.NET 2.0 Interoperability Recipes

.NET 2.0 Interoperability Recipes .NET 2.0 Interoperability Recipes A Problem-Solution Approach Bruce Bukovics .NET 2.0 Interoperability Recipes: A Problem-Solution Approach Copyright 2006 by Bruce Bukovics All rights reserved. No part

More information

Unit 1: Visual Basic.NET and the.net Framework

Unit 1: Visual Basic.NET and the.net Framework 1 Chapter1: Visual Basic.NET and the.net Framework Unit 1: Visual Basic.NET and the.net Framework Contents Introduction to.net framework Features Common Language Runtime (CLR) Framework Class Library(FCL)

More information

DOT NET SYLLABUS FOR 6 MONTHS

DOT NET SYLLABUS FOR 6 MONTHS DOT NET SYLLABUS FOR 6 MONTHS 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.) CLR Architecture and Services The.Net Intermediate

More information

Department of Computer Applications

Department of Computer Applications MCA 512:.NET framework and C# [Part I : Medium Answer type Questions] Unit - 1 Q1. What different tools are available and used to develop.net Applications? Hint a).net Framework SDK b) ASP.NET Web Matrix

More information

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

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix PGJC4_JSE8_OCA.book Page ix Monday, June 20, 2016 2:31 PM Contents Figures Tables Examples Foreword Preface xix xxi xxiii xxvii xxix 1 Basics of Java Programming 1 1.1 Introduction 2 1.2 Classes 2 Declaring

More information

Beginning ASP.NET. 4.5 in C# Matthew MacDonald

Beginning ASP.NET. 4.5 in C# Matthew MacDonald Beginning ASP.NET 4.5 in C# Matthew MacDonald Contents About the Author About the Technical Reviewers Acknowledgments Introduction xxvii xxix xxxi xxxiii UPart 1: Introducing.NET. 1 & Chapter 1: The Big

More information

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

PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore PESIT- Bangalore South Campus Hosur Road (1km Before Electronic city) Bangalore 560 100 Department of MCA COURSE INFORMATION SHEET Programming Using C#.NET (13MCA53) 1. GENERAL INFORMATION: Academic Year:

More information

.Net. Course Content ASP.NET

.Net. Course Content ASP.NET .Net Course Content ASP.NET INTRO TO WEB TECHNOLOGIES HTML ü Client side scripting langs ü lls Architecture ASP.NET INTRODUCTION ü What is ASP.NET ü Image Technique and code behind technique SERVER SIDE

More information

C# Syllabus. MS.NET Framework Introduction

C# Syllabus. MS.NET Framework Introduction C# Syllabus MS.NET Framework Introduction The.NET Framework - an Overview Framework Components Framework Versions Types of Applications which can be developed using MS.NET MS.NET Base Class Library MS.NET

More information

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

Charting the Course... MOC Programming in C# with Microsoft Visual Studio Course Summary Course Summary NOTE - The course delivery has been updated to Visual Studio 2013 and.net Framework 4.5! Description The course focuses on C# program structure, language syntax, and implementation details

More information

CHAPTER 1: INTRODUCTION TO THE IDE 3

CHAPTER 1: INTRODUCTION TO THE IDE 3 INTRODUCTION xxvii PART I: IDE CHAPTER 1: INTRODUCTION TO THE IDE 3 Introducing the IDE 3 Different IDE Appearances 4 IDE Configurations 5 Projects and Solutions 6 Starting the IDE 6 Creating a Project

More information

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

SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM ( ) SECURED PROGRAMMING IN.NET DETAILED TRAINING CONTENT INDUSTRIAL TRAINING PROGRAM (2013-2014) MODULE: C# PROGRAMMING CHAPTER 1: INTRODUCING.NET AND C# 1.1 INTRODUCTION TO LANGUAGES C++ C# DIFFERENCES BETWEEN

More information

Pro Perl Parsing. Christopher M. Frenz

Pro Perl Parsing. Christopher M. Frenz Pro Perl Parsing Christopher M. Frenz Pro Perl Parsing Copyright 2005 by Christopher M. Frenz Lead Editors: Jason Gilmore and Matthew Moodie Technical Reviewer: Teodor Zlatanov Editorial Board: Steve Anglin,

More information

Course Hours

Course Hours Programming the.net Framework 4.0/4.5 with C# 5.0 Course 70240 40 Hours Microsoft's.NET Framework presents developers with unprecedented opportunities. From 'geoscalable' web applications to desktop and

More information

A NET Refresher

A NET Refresher .NET Refresher.NET is the latest version of the component-based architecture that Microsoft has been developing for a number of years to support its applications and operating systems. As the name suggests,.net

More information

2609 : Introduction to C# Programming with Microsoft.NET

2609 : Introduction to C# Programming with Microsoft.NET 2609 : Introduction to C# Programming with Microsoft.NET Introduction In this five-day instructor-led course, developers learn the fundamental skills that are required to design and develop object-oriented

More information

Program Contents: DOTNET TRAINING IN CHENNAI

Program Contents: DOTNET TRAINING IN CHENNAI DOTNET TRAINING IN CHENNAI NET Framework - In today s world of enterprise application development either desktop or Web, one of leaders and visionary is Microsoft.NET technology. The.NET platform also

More information

Introduction to.net Framework Week 1. Tahir Nawaz

Introduction to.net Framework Week 1. Tahir Nawaz Introduction to.net Framework Week 1 Tahir Nawaz .NET What Is It? Software platform Language neutral In other words:.net is not a language (Runtime and a library for writing and executing written programs

More information

Enterprise JavaBeans 2.1

Enterprise JavaBeans 2.1 Enterprise JavaBeans 2.1 STEFAN DENNINGER and INGO PETERS with ROB CASTANEDA translated by David Kramer APress Media, LLC Enterprise JavaBeans 2.1 Copyright 2003 by Stefan Denninger and Ingo Peters with

More information

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. Preface p. xix ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. 6 Personalization p. 6 Master Pages p. 6 Navigation p.

More information

C# Programming in the.net Framework

C# Programming in the.net Framework 50150B - Version: 2.1 04 May 2018 C# Programming in the.net Framework C# Programming in the.net Framework 50150B - Version: 2.1 6 days Course Description: This six-day instructor-led course provides students

More information

Silverlight and ASP.NET Revealed. Matthew MacDonald

Silverlight and ASP.NET Revealed. Matthew MacDonald Silverlight and ASP.NET Revealed Matthew MacDonald Silverlight and ASP.NET Revealed Copyright 2007 by Matthew MacDonald All rights reserved. No part of this work may be reproduced or transmitted in any

More information

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801

ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801 ALPHAPRIMETECH 112 New South Road, Hicksville, NY 11801 Course Curriculum COMPUTER SYSTEM ANALYST-.NET C# Introduction to.net Framework.NET Framework OverView CLR,CLS MSIL Assemblies NameSpaces.NET Languages

More information

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other

New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other C#.NET? New programming language introduced by Microsoft contained in its.net technology Uses many of the best features of C++, Java, Visual Basic, and other OO languages. Small learning curve from either

More information

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary Description Course Summary This course provides knowledge and skills on developing Web applications by using Microsoft Visual. Objectives At the end of this course, students will be Explore ASP.NET Web

More information

Vision V sion o n I n n 1975 V sion o n T o T d o a d y A c o c m o pu p t u er e o n o n e v e e v r e y E po p w o er e p e p o e p o l p e

Vision V sion o n I n n 1975 V sion o n T o T d o a d y A c o c m o pu p t u er e o n o n e v e e v r e y E po p w o er e p e p o e p o l p e Mobile Applications.. Vision Vision In 1975 A computer on every desk and in every home Vision Today Empower people through great software any time, any place, and on any device Mobility Group Empower people

More information

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

Charting the Course to Your Success! MOC B Programming in C# Course Summary Course Summary Description This training course teaches developers the programming skills that are required for developers to create Windows applications using the C# language. During their five days in

More information

vtuplanet.com C#Programming with.net C# Programming With.NET (06CS/IS761)

vtuplanet.com C#Programming with.net C# Programming With.NET (06CS/IS761) C# Programming With.NET (06CS/IS761) Chapter wise questions and Answers appeared in previous years: UNIT I: 1 Philosophy of the.net What are the building blocks of.net platform? Give the relationship between.net

More information

"Charting the Course... Java Programming Language. Course Summary

Charting the Course... Java Programming Language. Course Summary Course Summary Description This course emphasizes becoming productive quickly as a Java application developer. This course quickly covers the Java language syntax and then moves into the object-oriented

More information

M Introduction to C# Programming with Microsoft.NET - 5 Day Course

M Introduction to C# Programming with Microsoft.NET - 5 Day Course Module 1: Getting Started This module presents the concepts that are central to the Microsoft.NET Framework and platform, and the Microsoft Visual Studio.NET integrated development environment (IDE); describes

More information

B.V Patel Institute of Business Management, Computer & Information Technology

B.V Patel Institute of Business Management, Computer & Information Technology BCA (Semester 4 th ) 030010401: GUI Programming Teaching Schedule Objective: To provide fundamentals of.net framework, C# language and to introduce development of rich Windows form applications with event

More information

VB.NET Web : Phone : INTRODUCTION TO NET FRAME WORK

VB.NET Web : Phone : INTRODUCTION TO NET FRAME WORK Web :- Email :- info@aceit.in Phone :- +91 801 803 3055 VB.NET INTRODUCTION TO NET FRAME WORK Basic package for net frame work Structure and basic implementation Advantages Compare with other object oriented

More information

Programming in C# for Experienced Programmers

Programming in C# for Experienced Programmers Programming in C# for Experienced Programmers Course 20483C 5 Days Instructor-led, Hands-on Introduction This five-day, instructor-led training course teaches developers the programming skills that are

More information

Java Quick Syntax Reference. Second Edition. Mikael Olsson

Java Quick Syntax Reference. Second Edition. Mikael Olsson Java Quick Syntax Reference Second Edition Mikael Olsson Java Quick Syntax Reference Second Edition Mikael Olsson Java Quick Syntax Reference Mikael Olsson Hammarland, Länsi-Suomi, Finland ISBN-13 (pbk):

More information

Dot Net Online Training

Dot Net Online Training chakraitsolutions.com http://chakraitsolutions.com/dotnet-online-training/ Dot Net Online Training DOT NET Online Training CHAKRA IT SOLUTIONS TO LEARN ABOUT OUR UNIQUE TRAINING PROCESS: Title : Dot Net

More information

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B Contents About the Course...xv Course Overview... xvi Course Map... xvii Module-by-Module Overview... xviii Course Objectives... xxii Skills Gained by Module... xxiii Guidelines for Module Pacing... xxiv

More information

DEPARTMENT OF INFORMATION TECHNOLOGY Academic Year 2015-2016 QUESTION BANK-EVEN SEMESTER NAME OF THE SUBJECT SUBJECT CODE SEMESTER YEAR DEPARTMENT C# and.net Programming CS6001 VI III IT UNIT 1 PART A

More information

Pro.NET 4 Parallel Programming in C#

Pro.NET 4 Parallel Programming in C# Pro.NET 4 Parallel Programming in C# Adam Freeman Pro.NET 4 Parallel Programming in C# Copyright 2010 by Adam Freeman All rights reserved. No part of this work may be reproduced or transmitted in any form

More information

The Definitive Guide to. NetBeans Platform 7. Heiko Bock. Apress*

The Definitive Guide to. NetBeans Platform 7. Heiko Bock. Apress* The Definitive Guide to NetBeans Platform 7 Heiko Bock Apress* Contents About the Author About the Translator About the Technical Reviewers Acknowledgments Introduction xiv xiv xv xvi xvii * Part 1: Basics

More information

Introduction to.net Framework

Introduction to.net Framework Introduction to.net Framework .NET What Is It? Software platform Language neutral In other words:.net is not a language (Runtime and a library for writing and executing written programs in any compliant

More information

Contents. Illustrations. 1 Introduction to Computers, the Internet, the Web and C# 1

Contents. Illustrations. 1 Introduction to Computers, the Internet, the Web and C# 1 csphtp1toc.fm Page viii Friday, December 14, 2001 1:49 PM Illustrations Preface viii xix xxxviii 1 Introduction to Computers, the Internet, the Web and C# 1 1.1 Introduction 2 1.2 What Is a Computer? 3

More information

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

Microsoft. Microsoft Visual C# Step by Step. John Sharp Microsoft Microsoft Visual C#- 2010 Step by Step John Sharp Table of Contents Acknowledgments Introduction xvii xix Part I Introducing Microsoft Visual C# and Microsoft Visual Studio 2010 1 Welcome to

More information

Beginning Silverlight 3

Beginning Silverlight 3 Beginning Silverlight 3 From Novice to Professional Robert Lair Beginning Silverlight 3: From Novice to Professional Copyright 2009 by Robert Lair All rights reserved. No part of this work may be reproduced

More information

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU

B. V. Patel Institute of Business Management, Computer & Information Technology, UTU BCA (Semester IV) 03010401: GUI Programming Teaching Schedule Objectives: To provide fundamentals of.net framework, VB.NET language and to introduce development of rich windows form applications with event

More information

Chapter 1:- Introduction to.net. Compiled By:- Ankit Shah Assistant Professor, SVBIT.

Chapter 1:- Introduction to.net. Compiled By:- Ankit Shah Assistant Professor, SVBIT. Chapter 1:- Introduction to.net Compiled By:- Assistant Professor, SVBIT. What is.net? 2 Microsoft s vision of the future of applications in the Internet age Increased robustness over classic Windows apps

More information

Chapters are PDF documents posted online at the book s Companion Website (located at

Chapters are PDF documents posted online at the book s Companion Website (located at vbhtp6printonlytoc.fm Page ix Wednesday, February 27, 2013 11:59 AM Chapters 16 31 are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel/). Preface

More information

Installing and Administering a Satellite Environment

Installing and Administering a Satellite Environment IBM DB2 Universal Database Installing and Administering a Satellite Environment Version 8 GC09-4823-00 IBM DB2 Universal Database Installing and Administering a Satellite Environment Version 8 GC09-4823-00

More information

Team Developer and.net

Team Developer and.net Team Developer and.net Unify Corporation Table of Contents Abstract...3 PART I - Consuming Team Developer Code from VB.NET...6 PART II - Consuming a VB.NET Assembly from Team Developer...8 Conclusion...11

More information

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

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 1. Which language is not a true object-oriented programming language? A. VB 6 B. VB.NET C. JAVA D. C++ 2. A GUI A. uses buttons, menus, and icons B. should be easy for a user to manipulate C. both (a)

More information

Pro Business Applications with Silverlight 4

Pro Business Applications with Silverlight 4 Pro Business Applications with Silverlight 4 Chris Anderson Apress* Contents at a Glance Contents About the Author Acknowledgments iv v xix xx a Chapter 1: Introduction 1 Who This Book Is For 1 About This

More information

Microsoft Visual C# 2005: Developing Applications Table of Contents

Microsoft Visual C# 2005: Developing Applications Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Sample Database...INTRO-3 Security...INTRO-4 Installation...INTRO-4

More information

Chapters and Appendix F are PDF documents posted online at the book s Companion Website (located at

Chapters and Appendix F are PDF documents posted online at the book s Companion Website (located at Contents Chapters 16 27 and Appendix F are PDF documents posted online at the book s Companion Website (located at www.pearsonhighered.com/deitel/). Preface Before You Begin xix xxix 1 Introduction to

More information

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

Learning C# 3.0. Jesse Liberty and Brian MacDonald O'REILLY. Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo Learning C# 3.0 Jesse Liberty and Brian MacDonald O'REILLY Beijing Cambridge Farnham Köln Sebastopol Taipei Tokyo Table of Contents Preface xv 1. C# and.net Programming 1 Installing C# Express 2 C# 3.0

More information

PART I: INTRODUCTION TO WINDOWS 8 APPLICATION DEVELOPMENT CHAPTER 1: A BRIEF HISTORY OF WINDOWS APPLICATION DEVELOPMENT 3

PART I: INTRODUCTION TO WINDOWS 8 APPLICATION DEVELOPMENT CHAPTER 1: A BRIEF HISTORY OF WINDOWS APPLICATION DEVELOPMENT 3 INTRODUCTION xix PART I: INTRODUCTION TO WINDOWS 8 APPLICATION DEVELOPMENT CHAPTER 1: A BRIEF HISTORY OF WINDOWS APPLICATION DEVELOPMENT 3 The Life of Windows 3 From Windows 3.1 to 32-bit 4 Windows XP

More information

Visual Basic 2008 How to Program, 4/E Outline

Visual Basic 2008 How to Program, 4/E Outline vbhtp4_outline.fm Page ix Monday, December 17, 2007 4:40 PM Visual Basic 2008 How to Program, 4/E Outline ( subject to change) current as of 12/17/07. As the contents change, we ll post updates at www.deitel.com/books/vbhtp4/.

More information

Microsoft.NET: The Overview

Microsoft.NET: The Overview 2975ch01.qxd 01/03/02 10:55 AM Page 1 Part I Microsoft.NET: The Overview Chapter 1: Chapter 2: What Is.NET? Microsoft s End-to-End Mobile Strategy COPYRIGHTED MATERIAL 2975ch01.qxd 01/03/02 10:55 AM Page

More information

Pro ODP.NET for Oracle. Database 11 g. Edmund Zehoo. Apress

Pro ODP.NET for Oracle. Database 11 g. Edmund Zehoo. Apress Pro ODP.NET for Oracle Database 11 g Edmund Zehoo Apress Contents Contents at a Glance iv Contents....v About the Author About the Technical Reviewer Acknowledgments xvii xviii xix Chapter 1: Introduction

More information

.NET FRAMEWORK. Visual C#.Net

.NET FRAMEWORK. Visual C#.Net .NET FRAMEWORK Intro to.net Platform for the.net Drawbacks of Current Trend Advantages/Disadvantages of Before.Net Features of.net.net Framework Net Framework BCL & CLR, CTS, MSIL, & Other Tools Security

More information

.Net Interview Questions

.Net Interview Questions .Net Interview Questions 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who

More information

Developing Microsoft.NET Applications for Windows (Visual C#.NET)

Developing Microsoft.NET Applications for Windows (Visual C#.NET) Developing Microsoft.NET Applications for Windows (Visual C#.NET) Key Data Course #: 2555 Number of Days: 5 Format: Instructor-Led Certification Exams: TBD This course helps you prepare for the following

More information

Microsoft..NET Framework. Overview

Microsoft..NET Framework. Overview Microsoft.NET Framework Overview .NET Enterprise Vision Users Any device, Any place, Any time XML Web Services Scheduling Authentication Integrate business applications and processes Notification Back

More information

Saikat Banerjee Page 1

Saikat Banerjee Page 1 1.What is.net? NET is an integral part of many applications running on Windows and provides common functionality for those applications to run. This download is for people who need.net to run an application

More information

UNIT 1 PART A PART B

UNIT 1 PART A PART B UNIT 1 PART A 1. List some of the new features that are unique to c# language? 2. State few words about the two important entities of.net frame work 3. What is.net? Name any 4 applications that are supported

More information

[CHAPTER] 1 INTRODUCTION 1

[CHAPTER] 1 INTRODUCTION 1 FM_TOC C7817 47493 1/28/11 9:29 AM Page iii Table of Contents [CHAPTER] 1 INTRODUCTION 1 1.1 Two Fundamental Ideas of Computer Science: Algorithms and Information Processing...2 1.1.1 Algorithms...2 1.1.2

More information

M4.1-R4: APPLICATION OF.NET TECHNOLOGY

M4.1-R4: APPLICATION OF.NET TECHNOLOGY M4.1-R4: APPLICATION OF.NET TECHNOLOGY NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE is to be answered in the OMR

More information

Top 40.NET Interview Questions & Answers

Top 40.NET Interview Questions & Answers Top 40.NET Interview Questions & Answers 1) Explain what is.net Framework? The.Net Framework is developed by Microsoft. It provides technologies and tool that is required to build Networked Applications

More information

Hands On, Instructor-Led IT Courses Across Colorado

Hands On, Instructor-Led IT Courses Across Colorado Hands On, Instructor-Led IT Courses Across Colorado Offering instructor-led courses in: Java, Java EE and OOAD SQL Programming and SQL Server UNIX, Linux Administration.NET Programming Web Programming

More information

DOWNLOAD PDF VISUAL STUDIO 2008 LEARNING GUIDE

DOWNLOAD PDF VISUAL STUDIO 2008 LEARNING GUIDE Chapter 1 : Visual Studio Express - C++ Tutorials Visual Studio Important! Selecting a language below will dynamically change the complete page content to that language. Premier Knowledge Solutions offers

More information

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

Visual C# 2008 How to Program, 3/E Outline vcsharp2008htp_outline.fm Page ix Monday, December 17, 2007 4:39 PM Visual C# 2008 How to Program, 3/E Outline ( subject to change) current as of 12/17/07. As the contents change, we ll post updates at

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introduction 8 Installing Visual Basic 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects 20 Reopening

More information

Microsoft Computer Vision APIs Distilled

Microsoft Computer Vision APIs Distilled Microsoft Computer Vision APIs Distilled Getting Started with Cognitive Services Alessandro Del Sole Microsoft Computer Vision APIs Distilled Alessandro Del Sole Cremona, Italy ISBN-13 (pbk): 978-1-4842-3341-2

More information

Prentice Hall CBT Systems X In A Box IT Courses

Prentice Hall CBT Systems X In A Box IT Courses Prentice Hall CBT Systems X In A Box IT Courses We make it click Visual Basic 5 In A Box Gary Cornell and Dave Jezak Prentice Hall PTR Upper Saddle River, NJ 07458 http://www.phptr.com Part of the Prentice

More information

Murach s Beginning Java with Eclipse

Murach s Beginning Java with Eclipse Murach s Beginning Java with Eclipse Introduction xv Section 1 Get started right Chapter 1 An introduction to Java programming 3 Chapter 2 How to start writing Java code 33 Chapter 3 How to use classes

More information

Silverlight Recipes. A Problem-Solution Approach. Apress* Jit Ghosh and Rob Cameron

Silverlight Recipes. A Problem-Solution Approach. Apress* Jit Ghosh and Rob Cameron . Silverlight Recipes A Problem-Solution Approach i Jit Ghosh and Rob Cameron Apress* Contents at a Glance Contents About the Author About the Technical Reviewer Acknowledgments Introduction iv v xxvi

More information

C#.NET TRAINING / /

C#.NET TRAINING / / C#.NET TRAINING.NET ENTERPRISE ARCHITECTURE Introduction to the.net platform Common Language Run Time(CLR) The Common Type Specification(CTS) The Common Language Specification(CLS) Microsoft Intermediate

More information

Getting started 7. Setting properties 23

Getting started 7. Setting properties 23 Contents 1 2 3 Getting started 7 Introducing Visual Basic 8 Installing Visual Studio 10 Exploring the IDE 12 Starting a new project 14 Adding a visual control 16 Adding functional code 18 Saving projects

More information

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1

Chapter 12 Microsoft Assemblies. Software Architecture Microsoft Assemblies 1 Chapter 12 Microsoft Assemblies 1 Process Phases Discussed in This Chapter Requirements Analysis Design Framework Architecture Detailed Design Key: x = main emphasis x = secondary emphasis Implementation

More information

An Introduction to.net for the J2EE Programmer

An Introduction to.net for the J2EE Programmer An Introduction to.net for the J2EE Programmer Jeroen Frijters Sumatra Software b.v. jeroen@sumatra.nl http://weblog.ikvm.net/ Page Overview.NET Framework overview and terminology A Quick Look at C# A

More information

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Welcome to SQL Server Integration Services 1. Chapter 2: The SSIS Tools 21

COPYRIGHTED MATERIAL. Contents. Introduction. Chapter 1: Welcome to SQL Server Integration Services 1. Chapter 2: The SSIS Tools 21 Introduction xxix Chapter 1: Welcome to SQL Server Integration Services 1 SQL Server SSIS Historical Overview 2 What s New in SSIS 2 Getting Started 3 Import and Export Wizard 3 The Business Intelligence

More information

Table Of Contents VISUAL BAISC 2005 FOR BEGINNERS

Table Of Contents VISUAL BAISC 2005 FOR BEGINNERS Table Of Contents SECTION I: REVOLUTION AND DESIGN ENVIRONMENT OF VISUAL BASIC 2005 1. INTRODUCTION TO MICROSOFT VISUAL STUDIO 2005... 1 HISTORY OF MICROSOFT VISUAL STUDIO... 1 Visual Studio 97... 1 Visual

More information