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

Design-Time UI Clues

Now that the dry, tedious topics have been covered, it's time to get back to the fun stuff. The goal of any control designer is to provide a proper view of how the control will appear during runtime. However, it is also necessary for the designer to provide a set of hints or visual clues that facilitate the design of the control. The designer itself provides these design-time hints or UI clues by overriding the OnPaintAdornments method. Figure 5.4 shows the various UI clues provided by the TabPage designer.

Figure 5.4. The TabPage designer UI clues.

Each TabPage designer draws a focus rectangle and the control alignment grid ...

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