Hiding the Up and Down Buttons

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 property to False.

At Design Time in Blend

To hide the Up and Down buttons in Blend, complete the following steps:

1.   Click the C1NumericBox control once to select it.

2.   Navigate to the Properties tab, and uncheck the ShowButtons check box.

This will set the ShowButtons 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:

<c1:C1NumericBox x:Name="C1NumericBox1" Width="40" Height="25" ShowButtons="False"></c1:C1NumericBox>

In Code

For example, to hide the Up and Down buttons add the following code to your project:

      Visual Basic

      C#

Run your project and observe:

The Up and Down buttons will not be visible.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.