Summary

This chapter examines the creation of several custom control types and follows the development of the control code with the necessary designer support to provide a rich experience in the Visual Studio Form Designer. Initially, we looked at the different possible starting points when creating a control—whether to inherit from an existing control, start with a basic Control type, or use the powerful UserControl, which is new in .NET Compact Framework 2.0. We investigated how building design-time behavior for smart device controls differs from using the full .NET Framework. We added the necessary designer attributes to support both simple and complex property types and provide descriptions and default values. Finally, we looked at the steps ...

Get Microsoft® Mobile Development Handbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.