Home > Products > CSHTMLDiff Control > Documentation > User Guide
|
SetControlPrefs
|
Previous Top Next |
|
|
| Display a run-time property sheet for controlling the engine's behaviour by end-users.
|
|
|
| Syntax
|
|
|
| Sub SetControlPrefs([Persist As Boolean = True])
|
|
|
| Parameters
|
|
|
| Persist
|
| Optional. If True, the settings will be stored in the registry under the key specified in the RegistryKey property (Default).
|
|
|
| Remarks
|
|
|
| Displays a property-sheet (similar to the design-time property-pages) which allows end-users to change the settings for the control at run-time.
|
|
|
| Specifying Persist=True will cause the settings to be stored in the registry. The stored settings will take effect the next time the application starts.
|
| The registry key for storing settings can be specified in the RegistryKey property.
|
|
|
| Example
|
|
|
| Private Sub ChangeSettings_Click()
|
| ' Let the user change the settings. Save the results in the
|
| ' registry key 'Software\MyApp'
|
| diffCtrl1.RegistryKey = "Software\MyApp"
|
| diffCtrl1.SetControlPrefs True
|
|
|
| End Sub
|
|
|
| See Also
|
|
|
| RegistryKey, Saving settings between sessions, Diff Specification
|
|
|
|
|