Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions WindowsForms/Double-TextBox/Number-Settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,21 @@ Me.doubleTextBox1.UseUserOverride = True
{% endtabs %}

![Double textbox culture](DoubleTextBox-images/DoubleTextBox-Culture.png)

## Hiding the trail zeros

The HideTrailingZeros property allows control over the display of trailing zeros in decimal values. When set to true, the DoubleTextBox displays only the significant digits of the value, hiding any trailing zeros.

{% tabs %}
{% highlight C# %}
// Hides the trailing zeros.
this.doubleTextBox1.HideTrailingZeros = true;
{% endhighlight %}
{% highlight VB %}
' Hides the trailing zeros.
Me.doubleTextBox1.HideTrailingZeros = True
{% endhighlight %}
{% endtabs %}

![Double textbox culture](DoubleTextBox-images/Hiding_zeros.png)