Beginning Visual C#® 2005

Book description

Creating next-generation software and applications is now easier than ever with the release of Visual C# 2005. This accessible book guides you through all aspects of C# programming and the capabilities of Visual Studio 2005 so that you can begin developing customized applications.

You'll first learn all aspects of the C# language, from the fundamentals to object-oriented techniques. You'll then quickly progress through Windows(r) and Web programming to making use of data sources, and finally to some advanced techniques such as XML documentation and graphics programming with GDI+. Throughout the book, you'll also find helpful hints, tips, exercises, and full-fledged example code that will enhance your programming skills.

This book covers everything you need to know about Visual C# 2005 and the .NET Framework to create powerful, secure applications for mobile devices, Web applications, Windows applications, and Web services.

What you will learn from this book

  • Ways to add functionality to your Visual C# applications

  • How to publish applications to the Web with the click of a button

  • Techniques for assembling advanced Windows applications with a minimum of effort and time

  • Tips for using Web services to add complex data and functionality to Web applications

  • How to improve your C# applications using object-oriented programming

  • Steps for using ADO.NET to interact with databases and deal with XML

  • Who this book is for

    This book is for anyone who wants to learn how to program in C# using the .NET Framework. It is also for programmers who know .NET 1.0 and want to find out about the latest features of .NET 2.0 and Visual Studio 2005.

    Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.

    Table of contents

    1. Cover Page
    2. Title Page
    3. Copyright
    4. Credits
    5. Dedication
    6. About the Author
    7. Contents
    8. Introduction
      1. Who This Book Is For
      2. How This Book Is Structured
      3. What You Need to Use This Book
      4. Conventions
      5. Source Code
      6. Errata
      7. p2p.wrox.com
    9. Part I: The C# Language
      1. 1: Introducing C #
        1. What Is the .NET Framework?
        2. What Is C#?
        3. Visual Studio 2005
        4. Summary
      2. 2: Writing a C# Program
        1. The Visual Studio .NET Development Environment
        2. Console Applications
        3. Windows Forms Applications
        4. Summary
      3. 3: Variables and Expressions
        1. Basic C# Syntax
        2. Variables
        3. Expressions
        4. Summary
        5. Exercises
      4. 4: Flow Control
        1. Boolean Logic
        2. The goto Statement
        3. Branching
        4. Looping
        5. Summary
        6. Exercises
      5. 5: More about Variables
        1. Type Conversion
        2. Complex Variable Types
        3. String Manipulation
        4. Summary
        5. Exercises
      6. 6: Functions
        1. Defining and Using Functions
        2. Variable Scope
        3. The Main() Function
        4. Struct Functions
        5. Overloading Functions
        6. Delegates
        7. Summary
        8. Exercises
      7. 7: Debugging and Error Handling
        1. Debugging in Visual Studio
        2. Error Handling
        3. Summary
        4. Exercises
      8. 8: Introduction to Object-Oriented Programming
        1. What Is Object-Oriented Programming?
        2. OOP Techniques
        3. OOP in Windows Applications
        4. Summary
        5. Exercises
      9. 9: Defining Classes
        1. Class Definitions in C#
        2. System.Object
        3. Constructors and Destructors
        4. OOP Tools in Visual Studio 2005
        5. Class Library Projects
        6. Interfaces versus Abstract Classes
        7. Struct Types
        8. Summary
        9. Exercises
      10. 10: Defining Class Members
        1. Member Definitions
        2. Additional Class Member Topics
        3. Interface Implementation
        4. Partial Class Definitions
        5. Example Application
        6. Summary
        7. Exercises
      11. 11: Collections, Comparisons, and Conversions
        1. Collections
        2. Comparisons
        3. Conversions
        4. Summary
        5. Exercises
      12. 12: Generics
        1. What Is a Generic?
        2. Using Generics
        3. Defining Generics
        4. Summary
        5. Exercises
      13. 13: Additional OOP Techniques
        1. The :: Operator and the Global Namespace Qualifier
        2. Custom Exceptions
        3. Events
        4. Expanding and Using CardLib
        5. Summary
        6. Exercises
    10. Part II: Windows Programming
      1. 14: Basic Windows Programming
        1. Controls
        2. The Button Control
        3. The Label and LinkLabel Controls
        4. The TextBox Control
        5. The RadioButton and CheckBox Controls
        6. The RichTextBox Control
        7. The ListBox and CheckedListBox Controls
        8. The ListView Control
        9. The TabControl Control
        10. Summary
        11. Exercises
      2. 15: Advanced Windows Forms Features
        1. Menus and Toolbars
        2. Toolbars
        3. SDI and MDI Applications
        4. Creating Controls
        5. Summary
        6. Exercise
      3. 16: Using Common Dialogs
        1. Common Dialogs
        2. How to Use Dialogs
        3. File Dialogs
        4. Printing
        5. Print Preview
        6. FontDialog and ColorDialog
        7. Summary
        8. Exercises
      4. 17: Deploying Windows Applications
        1. Deployment Overview
        2. ClickOnce Deployment
        3. Visual Studio Setup and Deployment Project Types
        4. Microsoft Windows Installer Architecture
        5. Creating an Installation Package for the Simple Editor
        6. Building the Project
        7. Installation
        8. Summary
        9. Exercises
    11. Part III: Web Programming
      1. 18: Basic Web Programming
        1. Overview
        2. ASP.NET Runtime
        3. Creating a Simple Page
        4. Server Controls
        5. Event Handlers
        6. Input Validation
        7. State Management
        8. Authentication and Authorization
        9. Reading and Writing a SQL Server Database
        10. Summary
        11. Exercises
      2. 19: Advanced Web Programming
        1. Sample Site
        2. Master Pages
        3. Site Navigation
        4. User Controls
        5. Profiles
        6. Web Parts
        7. Summary
        8. Exercises
      3. 20: Web Services
        1. Before Web Services
        2. Where to Use Web Services
        3. Web Services Architecture
        4. Web Services and the .NET Framework
        5. Creating a Simple ASP.NET Web Service
        6. Testing the Web Service
        7. Implementing a Windows Client
        8. Calling the Service Asynchronously
        9. Implementing an ASP.NET Client
        10. Passing Data
        11. Summary
        12. Exercises
      4. 21: Deploying Web Applications
        1. Internet Information Services
        2. IIS Configuration
        3. Copying a Web Site
        4. Precompiling a Web Site
        5. Windows Installer
        6. Summary
        7. Exercises
    12. Part IV: Data Access
      1. 22: File System Data
        1. Streams
        2. The Classes for Input and Output
        3. Serialized Objects
        4. Monitoring the File Structure
        5. Summary
        6. Exercises
      2. 23: XML
        1. XML Documents
        2. Using XML in Your Application
        3. Summary
        4. Exercises
      3. 24: Databases and ADO.NET
        1. What Is ADO.NET?
        2. Overview of ADO.NET Classes and Objects
        3. Install SQL Server and the Northwind Sample Data
        4. Reading Data with the DataReader
        5. Reading Data with the DataSet
        6. Updating the Database
        7. Accessing Multiple Tables in a DataSet
        8. XML and ADO.NET
        9. SQL Support in ADO.NET
        10. Summary
        11. Exercises
      4. 25: Data Binding
        1. Installing SQL Server and Sample Data
        2. Creating Your VS Database Project
        3. Adding a Data Source to an Application
        4. Adding a DataGridView
        5. Summary
        6. Exercises
    13. Part V: Additional Techniques
      1. 26: .NET Assemblies
        1. Components
        2. .NET Assembly Features
        3. Structure of Assemblies
        4. Calling Assemblies
        5. Private and Shared Assemblies
        6. Summary
        7. Exercises
      2. 27: Attributes
        1. What Is an Attribute?
        2. Reflection
        3. Built-In Attributes
        4. Custom Attributes
        5. Summary
      3. 28: XML Documentation
        1. Adding XML Documentation
        2. Making Use of XML Documentation
        3. Summary
        4. Exercises
      4. 29: Networking
        1. Networking Overview
        2. Networking Programming Options
        3. WebClient
        4. WebRequest and WebResponse
        5. TcpListener and TcpClient
        6. Summary
        7. Exercises
      5. 30: Introduction to GDI+
        1. Overview of Graphical Drawing
        2. Drawing Lines Using the Pen Class
        3. Drawing Shapes Using the Brush Class
        4. Drawing Text Using the Font Class
        5. Drawing Using Images
        6. Advanced Capabilities of GDI+
        7. Summary
        8. Exercises
    14. Index

    Product information

    • Title: Beginning Visual C#® 2005
    • Author(s):
    • Release date: November 2005
    • Publisher(s): Wrox
    • ISBN: 9780764578472