Chapter 5 - Advanced Control Development

function OpenWin(url, w, h) { if(!w) w = 400; if(!h) h = 300; window.open(url, "_new", "width=" + w + ",height=" + h + ",menubar=no,toobar=no,scrollbars=yes", true); }

IN THIS CHAPTER

  • Control Base Classes

  • Designer Base Classes

  • Designer Services

  • Designer Attributes

  • Design-Time UI Clues

  • Attributes

  • Properties

  • Basic Control Debugging

The process of building custom controls has been greatly simplified due to the richness of the base class libraries available in .NET. Already you possess the knowledge and skill necessary to create a wide assortment of controls. All that remains is learning about the services provided by the base class libraries and the VS .NET support for custom control development. In this chapter, all control and designer base classes, interfaces, events, and attributes are discussed at various levels of detail.

In this chapter, more details of the base class libraries, designers, and services are explored. Other than learning what services are available for building controls and their associated designers, an understanding of where to begin or what base class should be used is all that needs to be refined.

.NET also introduces the concept of attributes. Attributes are used to provide additional information about classes, properties, methods, and parameters. Control development makes use of various attributes, covered in this chapter, to associate controls with designers and properties with editors. Attributes provide an extremely flexible mechanism for loosely coupling components and promoting reusability.



    .NET Windows Forms Custom Controls
    User Interfaces in VB .NET: Windows Forms and Custom Controls
    ISBN: 1590590449
    EAN: 2147483647
    Year: 2002
    Pages: 74

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net