GDI+ Application Custom Controls with Visual C# 2005

A fast-paced example-driven tutorial to building custom controls using Visual C# 2005 Express Edition and .NET 2.0
Preview in Mapt

GDI+ Application Custom Controls with Visual C# 2005

Adam Ward et al.

A fast-paced example-driven tutorial to building custom controls using Visual C# 2005 Express Edition and .NET 2.0
Mapt Subscription
FREE
$29.99/m after trial
eBook
$14.70
RRP $20.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$14.70
$34.99
$29.99 p/m after trial
RRP $20.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


GDI+ Application Custom Controls with Visual C# 2005 Book Cover
GDI+ Application Custom Controls with Visual C# 2005
$ 20.99
$ 14.70
C# 7 Test Driven Development Book Cover
C# 7 Test Driven Development
$ 31.99
$ 22.40
Buy 2 for $32.20
Save $20.78
Add to Cart

Book Details

ISBN 139781904811602
Paperback276 pages

Book Description

Table of Contents

Chapter 1: Introduction to Custom Controls
What Are Controls?
Introducing Custom Controls
Preparing Your Environment
What Are Custom Controls Made Of?
Building TinyNoiseMaker
Extending TinyNoiseMaker
Summary
Chapter 2: Introduction to GDI+
Understanding Control Drawing
Simple Drawing on a Form
Drawing Inside a Panel Object
Drawing Inside a Control
Summary
Chapter 3: Basic Drawing
The GDI+ Coordinate System
Drawing with GDI+
Building the GradientLabel Control
Summary
Chapter 4: Drawing Complex Shapes and Using Transformations
Drawing Complex Shapes
Clipping Drawing Using Region Objects
Graphics Transformations
Creating the Clock Control
Summary
Chapter 5: Drawing Control Parts, Borders, and Adornments
Rendering Common Control Parts
Rendering Borders and Frames
Rendering Control Adornments
Creating Multiple Controls that Reuse the Same Functionality
Creating Derived Controls
Extending Existing Controls
Summary
Chapter 6: Working with Images
Drawing Images
Image Effects
Skewing, Rotation, and Scaling
The ImageWarperControl
Summary
Chapter 7: Printing
.NET Printing Explained
Your First Print Job
The SimpleReportPrinter
User Involvement
Our Responsibilities as Programmers
Printing Custom Controls
Summary
Chapter 8: Collections
Collections in the .NET Framework
Generics
Building the Font Picker
Summary
Chapter 9: Double Buffering
Introduction to Double Buffering
The Scroll Bar
Summary
Chapter 10: Handling Mouse Events
Handling Mouse Events
Dragging and Dropping
Dragging and Dropping
Summary
Chapter 11: Implementing Design-Time Support
Building Designer-Friendly Controls
Summary
Chapter 12: Designing Intuitive Interfaces
The Relationship between User and Computer
Requests, Input Parsing, Fault Tolerance, and Feedback
Looking Further Into Input Parsing
Our Regex Pattern in Detail
Optimization and Coding Conventions
Summary
Chapter 13: The PieChart Control
Creating the PieChart Control
Adding Slice Names and Delimiters
PieChart Legend
Printing the PieChart
Adding and Removing Slices
Summary

What You Will Learn

  • Understand the basics of custom controls
  • Use GDI+ to draw your own controls
  • Implement double buffering to speed up your forms
  • Add printing functionality to your custom controls
  • Handle the mouse events to improve the user experience
  • Offer design-time support for programmers using your control
  • Design intuitive interfaces for your users

Authors

Table of Contents

Chapter 1: Introduction to Custom Controls
What Are Controls?
Introducing Custom Controls
Preparing Your Environment
What Are Custom Controls Made Of?
Building TinyNoiseMaker
Extending TinyNoiseMaker
Summary
Chapter 2: Introduction to GDI+
Understanding Control Drawing
Simple Drawing on a Form
Drawing Inside a Panel Object
Drawing Inside a Control
Summary
Chapter 3: Basic Drawing
The GDI+ Coordinate System
Drawing with GDI+
Building the GradientLabel Control
Summary
Chapter 4: Drawing Complex Shapes and Using Transformations
Drawing Complex Shapes
Clipping Drawing Using Region Objects
Graphics Transformations
Creating the Clock Control
Summary
Chapter 5: Drawing Control Parts, Borders, and Adornments
Rendering Common Control Parts
Rendering Borders and Frames
Rendering Control Adornments
Creating Multiple Controls that Reuse the Same Functionality
Creating Derived Controls
Extending Existing Controls
Summary
Chapter 6: Working with Images
Drawing Images
Image Effects
Skewing, Rotation, and Scaling
The ImageWarperControl
Summary
Chapter 7: Printing
.NET Printing Explained
Your First Print Job
The SimpleReportPrinter
User Involvement
Our Responsibilities as Programmers
Printing Custom Controls
Summary
Chapter 8: Collections
Collections in the .NET Framework
Generics
Building the Font Picker
Summary
Chapter 9: Double Buffering
Introduction to Double Buffering
The Scroll Bar
Summary
Chapter 10: Handling Mouse Events
Handling Mouse Events
Dragging and Dropping
Dragging and Dropping
Summary
Chapter 11: Implementing Design-Time Support
Building Designer-Friendly Controls
Summary
Chapter 12: Designing Intuitive Interfaces
The Relationship between User and Computer
Requests, Input Parsing, Fault Tolerance, and Feedback
Looking Further Into Input Parsing
Our Regex Pattern in Detail
Optimization and Coding Conventions
Summary
Chapter 13: The PieChart Control
Creating the PieChart Control
Adding Slice Names and Delimiters
PieChart Legend
Printing the PieChart
Adding and Removing Slices
Summary

Book Details

ISBN 139781904811602
Paperback276 pages
Read More

Read More Reviews

Recommended for You

CherryPy Essentials: Rapid Python Web Application Development Book Cover
CherryPy Essentials: Rapid Python Web Application Development
$ 23.99
$ 16.80
OpenVPN:  Building and Integrating Virtual Private Networks  Book Cover
OpenVPN: Building and Integrating Virtual Private Networks
$ 35.99
$ 25.20
Drupal: Creating Blogs, Forums, Portals, and Community Websites Book Cover
Drupal: Creating Blogs, Forums, Portals, and Community Websites
$ 23.99
$ 16.80
PHP Programming with PEAR Book Cover
PHP Programming with PEAR
$ 23.99
$ 16.80
Programming Microsoft Dynamics NAV Book Cover
Programming Microsoft Dynamics NAV
$ 35.99
$ 25.20
cPanel User Guide and Tutorial Book Cover
cPanel User Guide and Tutorial
$ 17.99
$ 12.60