This code adds a custom tab called Custom Form Tab, with a single group and two command but-
tons. The Built-in Paste button runs the default Paste command (if there is something in the
Clipboard to paste); the Click Me button pops up a simple message box. To display a custom
Ribbon on a form, you need to select the Ribbon name in the form’s RibbonName property, as
shown in Figure 15.12.
FIGURE 15.12
Selecting a Ribbon for a form.
The custom tab is shown in Figure 15.13.
Part III Adding More Functionality to Office