Total .NET Analyzer Rule Documentation  

FormContextMenu Rule

Consider adding a context menu to the form.

Remarks

A form's context menu provides the user with access to frequently used commands through the right-click menu. In general, forms with any reasonable amount of functionality (i.e. forms other than the Splash Screen, the About Box, etc.) should include a context menu.

Resolution

To create a ContextMenu at design time, select the ContextMenu control from the ToolBox and the ContextMenu component is added to the component tray. To associate a context menu with the form, set the form's ContextMenu property in the Properties window.

See Also

Adding Context Menus to Windows Forms

Control.ContextMenu Property