Chapter 6 - Control Design Concepts

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 Design

  • Control Internals

  • A Preview of the OutlookBar Control

Building quality custom controls requires knowledge and practice. During the development process, there is a time of discovery. This discovery process includes learning the underlying system, the framework, and the most practical design for the control in order to provide a clear strategy for moving the project forward. To grow knowledge, there must be a starting point from which to begin. The Windows Forms base class library can be used as such a starting point.

By studying the current set of controls and their associated designers and UITypeEditors (see Chapter 5, "Advanced Control Development," for more information on UITypeEditors), you can glean lessons and apply them to new endeavors.

Before this chapter delves into designing and building the OutlookBar control, its subcomponents, and related designers, a tour of the existing set of Windows Forms controls will provide some insight that can be applied to the construction of the OutlookBar control to be built in chapters 7, 8 and 9.

It is necessary to understand how the common controls shipped with VS .NET are constructed so that the principles behind their design and implementation can be applied to new custom controls. The remainder of this chapter is spent exploring the concepts behind the implementation of the current common controls. In addition, we explore how to use the current set of controls to gain a better understanding of how to create custom controls.



    .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