ToolStripMenuItem.CheckState Property


Gets or sets a value indicating whether a ToolStripMenuItem is in the checked, unchecked, or indeterminate state.

 property System::Windows::Forms::CheckState CheckState { System::Windows::Forms::CheckState get(); void set(System::Windows::Forms::CheckState value); };
public System.Windows.Forms.CheckState CheckState { get; set; }
member this.CheckState : System.Windows.Forms.CheckState with get, set
Public Property CheckState As CheckState

Property Value


One of the CheckState values. The default is Unchecked.



The CheckState property is not set to one of the CheckState values.


Use the CheckState property to control or determine whether a ToolStripMenuItem is initially checked, unchecked, or in an indeterminate state.

Starting with the .NET Framework 4.5.2, if the CheckState property is set to Checked or Indeterminate, the corresponding icon may be resized. Resizing is determined by the system DPI setting when the app.config file contains the following entry:

  <add key="EnableWindowsFormsHighDpiAutoResizing" value="true" />  

Applies to

See also