Loading...
Loading...
Implement and configure the Syncfusion DomainUpdownExt control in Windows Forms applications. Use this skill when you need to create dropdown/selection controls with spin buttons, customize appearance, manage items, and enable keyboard navigation in WinForms projects.
npx skill4agent add syncfusion/winforms-ui-components-skills syncfusion-winforms-domainupdownextusing Syncfusion.Windows.Forms.Tools;
using System.Windows.Forms;
public class Form1 : Form
{
private DomainUpDownExt domainUpDownExt1;
public Form1()
{
// Create control
domainUpDownExt1 = new DomainUpDownExt();
// Add items
domainUpDownExt1.Items.Add("Option 1");
domainUpDownExt1.Items.Add("Option 2");
domainUpDownExt1.Items.Add("Option 3");
domainUpDownExt1.Items.Add("Option 4");
// Configure appearance
domainUpDownExt1.BorderStyle = BorderStyle.FixedSingle;
domainUpDownExt1.BackColor = System.Drawing.Color.White;
domainUpDownExt1.SpinOrientation = Orientation.Vertical;
// Enable keyboard navigation
domainUpDownExt1.InterceptArrowKeys = true;
// Add to form
this.Controls.Add(domainUpDownExt1);
}
}domainUpDownExt1.SpinOrientation = Orientation.Vertical;
domainUpDownExt1.UpDownAlign = LeftRightAlignment.Right;domainUpDownExt1.SpinOrientation = Orientation.Horizontal;
domainUpDownExt1.UpDownAlign = LeftRightAlignment.Left;domainUpDownExt1.BorderStyle = BorderStyle.FixedSingle;
domainUpDownExt1.BorderColor = System.Drawing.Color.Blue;
domainUpDownExt1.BackColor = System.Drawing.Color.LightGray;domainUpDownExt1.UpButton(); // Navigate to previous item
domainUpDownExt1.DownButton(); // Navigate to next item| Property | Type | Purpose | Common Values |
|---|---|---|---|
| Collection | Gets the collection of items | Add/Remove items |
| Int32 | Gets/sets the selected item index | 0 to Items.Count - 1 |
| String | Gets/sets the current display text | Any string |
| Orientation | Controls spin button direction | Vertical, Horizontal |
| LeftRightAlignment | Controls spin button position | Left, Right |
| Boolean | Enable/disable arrow key navigation | true, false |
| BorderStyle | Sets border appearance | FixedSingle, Fixed3D, None |
| Color | Sets border color | Any System.Drawing.Color |
| Color | Sets background color | Any System.Drawing.Color |
| HorizontalAlignment | Controls text alignment | Left, Center, Right |
| Int32 | Maximum text length | 0 to 32768 |