By default buttons are visible in the C1NumericBox control to allow users to increment and decrement the value in the box by one step. You can choose to hide the Up and Down buttons in the C1NumericBox control at run time. To hide the Up and Down buttons you can set the C1NumericBox.ShowButtons property to False.
At Design Time
To hide the Up and Down buttons, complete the following steps:
This will set the C1NumericBox.ShowButtons property to False.
In XAML
To hide the Up and Down buttons in XAML addShowButtons="False" to the <Xaml:C1NumericBox> tag so that it appears similar to the following:
Markup |
Copy Code
|
---|---|
<Xaml:C1NumericBox x:Name="C1NumericBox1" Width="40" Height="25" ShowButtons="False"></Xaml:C1NumericBox> |
In Code
To hide the Up and Down buttons add the following code to your project:
Visual Basic |
Copy Code
|
---|---|
C1NumericBox1.ShowButtons = False
|
C# |
Copy Code
|
---|---|
c1NumericBox1.ShowButtons = false;
|
Run your project and observe:
The Up and Down buttons will not be visible.