|
3 | 3 | [](https://supportcenter.devexpress.com/ticket/details/E3469)
|
4 | 4 | [](https://docs.devexpress.com/GeneralInformation/403183)
|
5 | 5 | <!-- default badges end -->
|
6 | | -<!-- default file list --> |
7 | | -*Files to look at*: |
| 6 | + |
| 7 | +# WinForms Custom Editor - Create a button editor that displays EditValue on the button |
| 8 | + |
| 9 | +This example creates a custom editor (the `ButtonEdit` descendant) that displays two buttons. The second button displays the `EditValue`. When the user enters text into the edit box, the text appears on the second button. |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +## Files to Review |
8 | 15 |
|
9 | 16 | * [Form1.cs](./CS/TestMyButtonEdit/Form1.cs) (VB: [Form1.vb](./VB/TestMyButtonEdit/Form1.vb))
|
10 | 17 | * [MyButtonEdit.cs](./CS/TestMyButtonEdit/MyButtonEdit.cs) (VB: [MyButtonEdit.vb](./VB/TestMyButtonEdit/MyButtonEdit.vb))
|
11 | 18 | * [MyButtonEditPainter.cs](./CS/TestMyButtonEdit/MyButtonEditPainter.cs) (VB: [MyButtonEditPainter.vb](./VB/TestMyButtonEdit/MyButtonEditPainter.vb))
|
12 | 19 | * [MyButtonEditViewInfo.cs](./CS/TestMyButtonEdit/MyButtonEditViewInfo.cs) (VB: [MyButtonEditViewInfo.vb](./VB/TestMyButtonEdit/MyButtonEditViewInfo.vb))
|
13 | | -* [Program.cs](./CS/TestMyButtonEdit/Program.cs) (VB: [Program.vb](./VB/TestMyButtonEdit/Program.vb)) |
14 | 20 | * [RepositoryItemMyButtonEdit.cs](./CS/TestMyButtonEdit/RepositoryItemMyButtonEdit.cs) (VB: [RepositoryItemMyButtonEdit.vb](./VB/TestMyButtonEdit/RepositoryItemMyButtonEdit.vb))
|
15 | | -<!-- default file list end --> |
16 | | -# How to create a ButtonEdit descendant showing EditValue in button's caption |
17 | | - |
18 | | - |
19 | | -<p>This example illustrates how to create a ButtonEdit descendant that creates the second default button and shows EditValue in its caption. When you type text in the editor it is shown in a caption of the second button.</p> |
20 | 21 |
|
21 | | -<br/> |
22 | 22 |
|
| 23 | +## Documentation |
23 | 24 |
|
| 25 | +* [Custom Editors](https://docs.devexpress.com/WindowsForms/4716/controls-and-libraries/editors-and-simple-controls/common-editor-features-and-concepts/custom-editors) |
0 commit comments