RE: C # question

  • From: "Celia Rodriguez" <celia-rodriguez@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 31 Mar 2010 17:29:22 -0500

Hi Varun,

Can you tell me how to display 3.3333 in a text box as 3.33
My teacher gave us the below code but the compilar does not like it.
I know you use the String.Format The below is what I was strying to code,
but I keep getting errors.
TextBox = String.Format({0:D2}, Volume);
The compilar does not like the { nor the :.
Can you help?

Thank you,
Celia

__________
View the list's information and change your settings at 
//www.freelists.org/list/programmingblind

Other related posts: