Form Menus
As interesting as forms themselves are—with their lifetime, adornments, transparency settings, and input options—they're all the more interesting with controls on them. But before we get into managing a form's controls in general, we need to take a quick look at menus, which have special support in WinForms. Not only does VS.NET have a special Menu Designer (as shown in Figure 2.7), but also, unlike every other control, a Form can show only one main menu at a time, as stored in the Form.Menu property (which is of type MainMenu).
Figure 2.7. The VS.NET Menu Designer
Although you are limited to a single main menu showing on a form at ...
Get Windows Forms Programming in Visual Basic .NET 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.