We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Numeric TextBoxes

Thread ID:

Created:

Updated:

Platform:

Replies:

24771 Feb 10,2005 11:17 AM Feb 10,2005 03:39 PM Windows Forms 1
loading
Tags: Tools
Mark Harding
Asked On February 10, 2005 11:17 AM

Is there a way to apply a numeric format string to the value in the TextBox? For example I want to Format the DoubleValue in a DoubleTextBox with the numeric format string "#,##0.####". I have set the Double Text box to 4 decimal places which is fine but (not surprisingly some might say) it displays the double 0.0 as "0.0000", I only want the 4dp precision as and when the double requires it.

Administrator [Syncfusion]
Replied On February 10, 2005 03:39 PM

Hi Mark, The DoubleTextBox class uses a NumberFormatInfo internally. Since NumberFormatInfo works like you describe, so does DoubleTextBox. However, it should be possible to dynamically update NumberDecimalDigits to affect how the number is displayed. Regards, Gregory Austin Syncfusion, Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;