On TechRepublic: Five super-secret features in Windows 7
BNET Business Network:
BNET
TechRepublic
ZDNet

FREE Registration is required

Overview:

Get the most out of Windows Forms, the next-generation Windows programming class library, by using C# to create dynamic user interfaces and graphical outputs for Windows applications. Focus on developing custom controls in this sample chapter from Programming Microsoft Windows Forms: A Streamlined Approach Using C#. From a programming perspective, a custom control is a class that you define that derives—either directly or indirectly—from Control. It may be an enhancement of an existing control or an entirely new control. Although you can perform a significant amount of customization just by installing event handlers on existing controls and processing those events, a new class is required if you need to entirely override default event handling. You also need to create a new class if you want to add fields or properties to an existing control. In this chapter, investigate:

  • Enhancing existing controls
  • Overriding methods
  • Adding new properties
  • Control paint jobs
  • Combining existing controls
  • Creating custom controls from scratch

As with most any programming job, the real benefit of custom controls comes with reusing them in multiple applications or in making them available to other programmers for profit or glory.



Title: Programming Microsoft Windows Forms: A Streamlined Approach Using C#
ISBN: 0735613702
Published: December 2001
Authors: Charles Petzold
Chapter: Chapter 4: Custom Controls
Published by Microsoft Press

(Is this item miscategorized? Does it need more tags? Let us know.)

Format:PDFSize:1,565 KB
Date:Dec 2006Version:1.0
License:copyright
System Req:Adobe Acrobat Reader 5.0 or later
advertisement

White Papers, Webcasts, and Resources

Featured Training Courses

SmartPlanet

Click Here

Returning users: Log In Here!

Already registered on BNET, TechRepublic, or ZDNet? Simply log in.

Free Membership: Sign Up Now!

Sign up for a free membership today and get instant and unlimited access to one of the largest databases of white papers, webcasts, and casestudies anywhere. Your FREE membership allows you to:

  • Download an unlimited amount of content, including classic and current white papers, case studies, webcasts and more
  • Track content on your chosen topics of interest
  • Receive targeted email alerts when your favorite content is added
  • Save content for future reading
  • Receive our member newsletter

When you register to access this library, you allow us to share your information with companies that produce products or services featured in the library--so that such companies may contact you with information and offers regarding their products and services. This enables us to keep the library a free service. As a library registrant, you will receive a complimentary subscription to the ZDNet white paper newsletter and e-mail Must-Read News Alerts. You can unsubscribe from these at any time. By clicking the Sign up button, you indicate that you agree to our Terms and Conditions and have read and understand our Privacy Policy (updated).