Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use the BorderIcons property to define which buttons are shown in the title bar.

By default the Minimize, Maximize and Close buttons are shown.
Image Removed
Image Added

Any changes you make to these buttons are only shown at run-time, not at design-time.

You can select the Help button only if the Minimize or Maximize buttons are not selected.
Image Removed
Image Added

At run-time when the Help button is clicked, the cursor is changed to context-sensitive help icon.
Image Removed
Image Added

Then when the user clicks on a component on the form, context-sensitive help for that component is displayed if it exists.

In addition to the BorderIcons property, the FrameStyle property of the form affects the title bar buttons. This property also controls whether the window has a frame, title bar or an icon at run-time.

A form with FrameStyle Dialog is not sizable and it does not have a system menu in the left top corner. It can have Minimize, Maximize and Help buttons.
Image Removed
Image Added

A form with FrameStyle Sizable has a system menu and can be sized using the mouse or the system menu:
Image Removed
Image Added

A form with FrameStyle ToolWindow or SizeToolWindow has only the close button and the text of the title is in small font:
Image Removed
Image Added

These forms cannot have an icon and they do not appear on the Windows task bar. Forms with FrameStyle SizeToolWindow are sizable.