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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Calculator Format and Focus

Thread ID:





68738 Sep 30,2007 10:30 PM UTC Dec 26,2007 05:09 AM UTC WinForms 3
Tags: Tools
Qingde Shi
Asked On September 30, 2007 10:30 PM UTC


I have to question about the Calculator control.

1. Number Format. How to display the value with commas for thousands, but show all the digits after decimal point. like, 1234.56789012 would show as 1,234.56789012

2. Say, place the calculator control and a Button control on a form,. after click the button, how to make the calculator control to continue receiving input from key pads? tried to set focus back, but no help.



Administrator [Syncfusion]
Replied On October 1, 2007 12:58 PM UTC

Hi Q,

Thank you for your interest in Syncfusion products.

Numeric format :

The calculator control by default does not allow the use of 'NumberGroupSeparator' like in DoubleTextBox. So to achieve this, we need to derive the CalculatorControl and override the 'CreateCalculatorDisplayBox' method.

Send focus back to Calculator :

For this, please call focus method of calculator.


The below sample accomplishes the above changes. Please look at the attached sample and let me know if this meets your requirement.



Qingde Shi
Replied On October 1, 2007 01:19 PM UTC

Hi Jaya,


The Controls[0].Focus() did the trick.

as for the format, number of decimal should be dynamic, I am not sure the method in your sample would work for all the cases.

Thanks again.


Administrator [Syncfusion]
Replied On December 26, 2007 05:09 AM UTC

Hi Q,

Please let me know if the above provided details helps you to resolve the issue and provide me more information in which cases it will not help that would help us to provide you a solution.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon