double p = 123456.12345678; double p1 = Math.Round(p,2); MessageBox.Show(p1.ToString());
private void textBox1_Leave(object sender, System.EventArgs e) { TextBox1.Text = double.Parse(TextBox1.Text).ToString("f2"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)