Skip to main content
  • 603 Accesses

Abstract

In Chapter 13 you explored how you could add a respectable level of design-time support to your control. You saw how attributes, type converters, and type editors could improve the Properties-window support for your control and ensure proper code serialization. In this chapter, you’ll continue to add to your design-time skills by considering a few more topics.

  • Control designers. Control designers allow you to manage the design-time behavior and the design-time interface (properties and events) exposed by your control. Although control designers are quite complex pieces of the Windows Forms infrastructure (and creating one from scratch is far beyond the scope of this book), it’s not difficult to customize an existing control designer to add new features.

  • Smart tags. The new .NET 2.0 controls provide them, so why can’t your controls? As you’ll see, it’s quite easy.

  • Collection controls. You’ve already learned the basics about type converters and type editors. In this section, you’ll learn how to apply these to more complex controls that model collections of items, and add some extra features with a control designer.

  • Licensing. If you want to restrict how your control can be used (either at runtime or at design time), you’ll need to implement some sort of licensing policy.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 89.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2006 Matthew MacDonald

About this chapter

Cite this chapter

(2006). Advanced Design-Time Support. In: Pro .NET 2.0 Windows Forms and Custom Controls in C#. Apress. https://doi.org/10.1007/978-1-4302-0110-6_26

Download citation

Publish with us

Policies and ethics