Prova

codice:
textBox2.Text = (Double.Parse(textBox1.Text)/1000.0).ToString("F99").TrimEnd("0".ToCharArray());