Item description for GDI+ Custom Controls with Visual C# 2005 by Iulian Serban...
If you want to build application custom controls with C# but you don't know where to start, or you are intimidated by the huge amount of information that needs to be absorbed, then this book is for you. This friendly tutorial is based on numerous examples with real-world applicability, and includes a case study featuring the development of a fully functional PieChart control.
Showing you how to use the free Visual C# 2005 Express Edition environment to develop your controls, GDI+ Custom Controls with Visual C# 2005 will teach you how to create professional, reusable custom controls for your desktop applications in no time.
This shows you how to:
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
Throughout the book the emphasis is on using examples to illustrate concepts and techniques. Code is shown in detail, and explained thoroughly. The examples themselves are intended to be both intructional and useful in their own right.
This book has been written with the intermediate C# developer in mind. Assuming a working knowledge of C#, the book teaches you how to implement custom controls using Visual C# 2005 Express Edition and all other versions of Visual C#, and GDI+ with .NET 2.0. The book focused on application and not web custom controls.
Promise Angels is dedicated to bringing you great books at great prices. Whether you read for entertainment, to learn, or for literacy - you will find what you want at promiseangels.com!
Est. Packaging Dimensions: Length: 9.06" Width: 7.48" Height: 0.63" Weight: 1.06 lbs.
Release Date Jun 20, 2006
Publisher Packt Publishing
ISBN 1904811604 ISBN13 9781904811602
Availability 106 units. Availability accurate as of Oct 24, 2016 11:22.
Usually ships within one to two business days from La Vergne, TN.
Orders shipping to an address other than a confirmed Credit Card / Paypal Billing address may incur and additional processing delay.
Reviews - What do customers think about GDI+ Custom Controls with Visual C# 2005?
Short and Sweet. Jun 19, 2008
This book worked out very well for me. It's very readable and at about 250 pages, it covers a lot of ground very fast. I hadn't worked with custom controls before this and now I am quite comfortable with them.
One of the things I liked about it was that it was example driven. You build custom controls starting on chapter 1. Then they go over GDI+, then more advanced image manipulation, event handling, double buffering, design time support, deployment and in the last chapter you put it all together in a pie chart example.
Two caveats. You might want something more comprehensive for reference. For that reason I also have Pro .NET 2.0 Windows Forms and Custom Controls in C#. Also, I think some of the UI stuff could have been a tad more stylish.
GDI+ Custom Controls with Visual C# 2005 May 13, 2007
It is a good book about understanding how GUI widgets are drawn on screen , however I think it could have gone further in depth , taking into account more traditional Widgets.
It's C# Applications, No Web Sep 12, 2006
While the book looks like a good book from what we've read (we do pretty much no application programming though), don't make the mistake of getting it in hopes for Custom Controls for C# on the web.
We should have read more into it (the Visual C# Express Edition comment should have been a hint), but it was the only book on Custom Controls out at the time, so we hoped on it hoping to find some neat control examples.
We were disappointed when we found it only dealt with Application Custom Controls and there is very little thus far we could adapt for the web.
I really wish they would have put somewhere in the description to spell it out that there are no C# web items in the book, though.
Good Book for those learning custom control development Aug 6, 2006
The caption on the front of the book states that GDI+ Custom Controls is a "fast-paced example-driven tutorial," which it is just that. This book covers the main essentials for GDI+ that all control developers want to know, including topics on painting, mouse movements, printing, drag/drop, and other topics.
The authors of the book like to use the examples to drive home most of the points about GDI+. Though it starts out by discussing each subject, it quickly moves to an illustration of the subject through an example, explaining the concepts in a follow-up response. Throughout the book are little tidbits of knowledge that are really good concepts to understand. Already knowing quite a bit about GDI+, there was some information for me still to learn on the subject.
The overall writing style of the book makes it an easy read. Plus, this book has more code sections than the average book to look at, as well as screen shots, which makes it more practical. Generally after each code section, there is a review to explain what the code does, not leaving you to guess what all of the purpose of the code is. In addition, I've included a review on the content of the chapters below.
This book starts out with a discussion on the fundamentals of controls: the different parts they are composed of and the objects and concepts for drawing them to the screen. It moves on towards drawing complex objects using the GraphicsPath object, which allows you to draw lines, curves, polygons, and other shapes in a continuous motion, as well as Transformations. These chapters focus mostly on the drawing of objects, with a minor amount of coverage on the handling of text. The example for the complex object section is the drawing and painting of the Visual Studio logo, which is an excellent example to illustrate a complex drawing example.
Drawing control parts, borders, and adornments is the next subject, which is exposed to custom controls through the ControlPaint class. The book discusses each of the available control parts and includes a screenshot of their appearance in each of their states (such as a button in Checked, Flat, Inactive, Normal, or Pushed state). Next is the ability to render various border styles for a control, as well as various adornments (such as the resizing handle, the size grip used to resize windows, various glyphs, and other objects) on the screen. It is amazing all of the options available, and the book discusses some of the uses in the examples in the chapter.
It covers more of the major functionality in controls in the next several chapters, such as how to display and alter images, print a control's text output to the printer, and handle mouse clicking and moving events within the control, each with their own example. The book also talks about the two kinds of dragging; dragging a control around the screen, and dragging/dropping an object.
The chapter on custom collections discusses both non-generic and generic versions of each type of collection. It discusses how each collection works, which is important to know. I personally didn't realize all of the different options that were available. However, the book doesn't cover creating your own custom collections, which you see implemented in most controls.
The book continues with a short discussion on double-buffering and how you can improve performance by storing the painting of a control in memory. To do this, the example it uses is scrolling text across the screen, which can be an intensive process. As you may know, scrolling is an intensive process because it has to repaint constantly. If you've had the Task Manager open when scrolling a Microsoft Word document, you may know what I'm talking about. The one example I wish they would have included in this is the use of scrollbars in a control, as they talk about it before moving on to a scrolling text example.
Controls have a design-time environment, which the next chapter talks about. You can add additional features, such as using custom windows forms to provide property editing support, using attributes to interact with the property grid, or using a type editor to limit the amount of acceptable values. For instance, the Color control has a limited set of values based on the enumeration, which the built-in type converter handles that limitation, by providing a drop down box with the selection of colors. This chapter talks about all the various aspects of design-time components, but I wish it would have gone more in-depth in regards to the examples. It touched upon the Color type converter, but only implemented a custom modal property editor, leaving out some of the other topics like designers themselves, which can be complex. It also didn't mention about Action lists, a new feature in the design-time environment.
The book comes to an end with a design theory chapter, stating concepts you should think about when designing your custom control. Taking these concepts of "appearance", "intuitiveness", and "stability", we come to the last chapter which uses them to create a custom PieChart control, a more advanced control tying in the various topics discussed throughout the whole book. The control renders a pie chart, and if it can, the text for the item in the pie chart directly in the control, with a legend on the side.
In reading this book, I found it to be a great guide to get you started. It doesn't cover each subject in great detail; if it would, it would have to be a reference book, and would be way too many pages to cover in one book, not to mention the monumental price. After all, windows development is a complex topic with so many different aspects to it. But this book, for someone who doesn't understand the concepts or who has a basic knowledge of GDI+, and only has a minor understanding of custom controls, will find this book beneficial as a starting place to get a framework for developing custom controls in the windows environment.