This documentation is archived and is not being maintained.

How to: Create a UI Type Editor

The following code examples contain two different user interface (UI) type editors for two properties of the FlashTrackBar control described in How to: Create a Windows Forms Control That Shows Progress.

In the first example, the FlashTrackBarValueEditor is applied to the Value property and demonstrates the following points:

  • How the FlashTrackBarValueEditor extends the UITypeEditor class.

  • How to override the EditValue method to set the properties of the editor.

  • How to override the GetEditStyle method to specify the style for the editor.

In the second example, the FlashTrackBarDarkenByEditor extends the FlashTrackBarValueEditor and overrides a helper method to set properties. The FlashTrackBarDarkenByEditor is applied to the DarkenBy property of the FlashTrackBar.

Note Note

You must compile these examples along with the FlashTrackBar control, as described in How to: Create a Windows Forms Control That Shows Progress.

No code example is currently available or this language may not be supported.

No code example is currently available or this language may not be supported.
Show: