Styles

Chapter 2: Forms introduces the important dialog-related properties: ControlBox, FormBorderStyle, HelpButton, MaximizeBox, MinimizeBox, and ShowInTaskbar. By default, a new form shows the control box, is sizable, doesn't show the help button, can be minimized and maximized, and is shown in the shell's taskbar. For a main window, these are fine settings and will yield a form that looks like the one in Figure 3.1.

Figure 3.1. Typical Main Window Form Settings

A typical modal form, on the other hand, is more likely to hide the minimize and maximize boxes, to show the help button, and to choose not to show up in the taskbar (the parent will ...

Get Windows Forms Programming in C# 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.