System.Windows.Forms.ComponentModel.Com2Interop.IComPropertyBrowser.SaveState Method

Saves user states from the System.Windows.Forms.PropertyGrid control to the registry.

Syntax

public void SaveState (Microsoft.Win32.RegistryKey key)

Parameters

key
The registry key that contains the user states.

Remarks

You can save some of the System.Windows.Forms.PropertyGrid control states, such as the System.Windows.Forms.PropertyGrid.PropertySort and System.Windows.Forms.PropertyGrid.HelpVisible properties, to the registry and load them the next time the user runs your application.

Requirements

Namespace: System.Windows.Forms.ComponentModel.Com2Interop
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0