When I enter value 100 into text-box.
It should display the value like "$100.00"
What is code behind it.??
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Feb 7, 2014, 4:58 AM
textBox1.Text = "$" + d.ToString("c").Substring(1);
If the textbox doesn't contain a valid number, this code should set it to $0.00.
Angel PrincessPosted Feb 10, 2014, 11:46 PM
Angel PrincessPosted Feb 7, 2014, 1:24 AM