# Hiding the Up and Down Buttons

## Content

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 [ShowButtons](/componentone/api/wpf/online-basiclibrary/dotnet-framework-api/C1.WPF.4.6.2/C1.WPF.C1NumericBox.ShowButtons.html) property to **False**.

### In XAML

For example, to hide the **Up** and **Down** buttons in XAML add **ShowButtons="False"** to the **\<c1:C1NumericBox>** tag so that it appears similar to the following:

```xml
<c1:C1NumericBox Name="C1NumericBox1" ShowButtons="False" />
```

### In Code

To hide the **Up** and **Down** buttons add the following code to your project:

```vbnet
C1NumericBox1.ShowButtons = False
```

```csharp
c1NumericBox1.ShowButtons = false;
```

### At Design Time

To hide the **Up** and **Down** buttons at run time, complete the following steps:

1. Click the **C1NumericBox** control once to select it.
2. Navigate to the **Properties** window, and uncheck the **ShowButtons** check box.

This will set the **ShowButtons** property to False.
**Run your project and observe**:

The **Up** and **Down** buttons will not be visible:

![](https://cdn.mescius.io/document-site-files/images/7e9deccd-1f1c-4ec7-af90-b4332b45dead/images/numericbox/hiddenbuttons.png)