Recommended Answers
Jump to PostAre you saving it as a string or integer (/double/decimal etc.)?
Try .ToString("00000000.00")
Jump to Posti am taking it as a string parameter and the MS SQL datatype is money in the MDF file in visual studio.
thankx
Convert it to decimal.
decimal s; decimal.TryParse(valueFromDb, out s); maskedTextBox1.Text = s.ToString("$00000000.00");
Jump to Post> how can i avoid the 0 z in the value that is being displayed.
You cannot. This is a limitation of the MaskedTextBox. Edward usually uses a regular TextBox and manages the format manually. For example, just a straight validation is super easy.private void textBox1_Validating(object …
Jump to PostIgnore. Posted to wrong thread.
Jump to Postyou have a property named 'ShowPlaceHolders', make it false.
you will not get '___'.
use this 'ShowPlaceHolders' through your code.Thanks,
as a senior poster, i hope u knw, please mark it as solved if its working fine.
sry, just reminding you
All 18 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.