Or generally, you can set a mask if the control you are using does support it. For example, in case of DevExpress it is like this: this.txtNotificationLimitAfterDeal.Properties.Mask.EditMask = "#,#############0";