[]
        
(Showing Draft Content)

Setting the Value

The Value property determines the currently visible text. By default the C1MaskedTextBox control starts with its Value not set but you can customize this at design time, in XAML, and in code.

In XAML

To set the Value property add Value="123" to the <c1:C1MaskedTextBox> tag so that it appears similar to the following:

<c1:C1MaskedTextBox Name="C1MaskedTextBox1" Value="123" Height="23" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="120" ></c1:C1MaskedTextBox>

In Code

To set the Value property add the following code to your project:

C1MaskedTextBox1.Value = "123"
c1MaskedTextBox1.Value = "123";

At Design Time

To set the Value property at run time, complete the following steps:

  1. Click the C1MaskedTextBox control once to select it.
  2. Navigate to the Properties window, and enter a number, for example "123", in the text box next to the Value property.

This will set the Value property to the number you chose.