Hey guys, had a quick question. -
Show the code needed to take the Double value stored in dblSample and display it formatted as currency in the Label lblResult.
I'm putting- lblResult.text = dblSample.ToString("c") , but every time I click the calculate button, it just gives me $0.00. Am I missing a line of code I need to put first, or is this just completely wrong in general? Any help would be appreciated, thanks!
Show the code needed to take the Double value stored in dblSample and display it formatted as currency in the Label lblResult.
I'm putting- lblResult.text = dblSample.ToString("c") , but every time I click the calculate button, it just gives me $0.00. Am I missing a line of code I need to put first, or is this just completely wrong in general? Any help would be appreciated, thanks!