I am using String.Format("{0:C2}", -1234) to format numbers.
It always formats the amount to a positive number, while I want it to become $ – 1234
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think I will simply use:
(in Microsoft.VisualBasic.Strings module)
Or in shorter words (this is what im actually going to use):
Or I will make myself a custom formatcurrency function that uses the VB function passing my custom params.
For further details take a look at the FormatCurrency Function (Visual Basic) in the msdn.