C # question
- From: "Celia Rodriguez" <celia-rodriguez@xxxxxxxxxxxxx>
- To: <programmingblind@xxxxxxxxxxxxx>
- Date: Sun, 6 Dec 2009 04:02:56 -0000
HiVarun How do I display a decimal integer into a text box or label? Here is my simple code: Decimal TotalCost = 0; TotalCost+=2.00M; I want to display TotalCost as $ 2.00 in ,Either lblTotal.Text or TxtTotal.Text But I keep getting the following error. Error 1 Cannot implicitly convert type 'decimal' to 'string' Also how do I convert 2.00 as $ 2.00? Thank You, Celia
- Follow-Ups:
- Re: C # question
- From: black ares
- Re: C # question
- From: Varun Khosla
- Re: C # question
- References:
- Re: Putting A GUI Onto A Command Line Program With AutoIt3
- From: Richard Dinger
- RE: Putting A GUI Onto A Command Line Program With AutoIt3
- From: Homme, James
- Re: Putting A GUI Onto A Command Line Program With AutoIt3
Other related posts:
- » C # question - Celia Rodriguez
- » Re: C # question - Tyler Littlefield
- » Re: C # question - RicksPlace
- » C # question - Celia Rodriguez
- » Re: C # question - black ares
- » Re: C # question - Varun Khosla
- » Re: C # question - Varun Khosla
- » RE: C # question - Celia Rodriguez
- » RE: C # question - Simon Gaudiuso
- » RE: C # question - Celia Rodriguez
- » RE: C # question - Simon Gaudiuso
- » RE: C # question - Celia Rodriguez
- » RE: C # question - Celia Rodriguez
- » RE: C # question - Simon Gaudiuso