Textbox to Cash format
string ta = txtGrossAmount.Text.ToString().Trim();
double taamt = Convert.ToDouble(ta);
txtGrossAmount.Text = taamt.ToString("#0.00");
Textbox to Weight format
string ta = txtWt.Text.ToString().Trim();
double taamt = Convert.ToDouble(ta);
txtWt.Text = taamt.ToString("#0.000");
No comments:
Post a Comment