Skip to Content
.NET Windows® Forms Custom Controls
book

.NET Windows® Forms Custom Controls

by Richard Weeks
January 2002
Intermediate to advanced
288 pages
5h 48m
English
Sams
Content preview from .NET Windows® Forms Custom Controls

Implementation

Now that the responsibilities and expected functionality of the OutlookBarTab have been defined, it's time to realize the design in code. Listing 7.1 provides the complete listing for the OutlookBarTab component.

Listing 7.1. OutlookBarTab
 1: using System; 2: using System.ComponentModel; 3: using System.Drawing; 4: using System.Windows.Forms; 5: 6: namespace SAMS.ToolKit.Controls 7: { 8: 9: [ 10: Description( "OutlookBarTab Component" ), 11: ToolboxItem( false ) 12: ] 13: public class OutlookBarTab : System.ComponentModel.Component { 14: 15: #region STATIC FIELDS 16: internal static int EDGE_PADDING = 4; 17: #endregion 18: 19: #region Protected Instance Members 20: protected string text; 21: protected StringAlignment textAlignment; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Pro .NET 5 Custom Libraries: Implementing Custom .NET Data Types

Roger Villela
Professional C# 5.0 and .NET 4.5.1

Professional C# 5.0 and .NET 4.5.1

Christian Nagel, Jay Glynn, Morgan Skinner

Publisher Resources

ISBN: 0672323338Purchase book