July 22nd, 2011, 11:43 AM
DisplayFormat/DisplayStyle property of TextBox (Visual Studio 2010, .Net Framework 4)
Is there any predefined property by which I can set the DisplayFormat/DisplayStyle of a textbox? Suppose I want a textbox to hold the actual value 888888888888.88 and show it formatted as 888,888,888,888.88. In short it should hold 'Double' data type value and show it with thousand separators and decimal places upto two digits. If text is cleared from the textbox, it should have 0 as value and 0.00 as displayed value. Also the number of digits in the textbox may vary accordingly. So how can it be done? Please help. Regards.
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!