我发现从这些代码行中我们可以得到加拿大的货币。
Dim value As Decimal = ourTextbox.text
Dim positiveValue As Decimal = ourTextbox.text
Dim customCurrencyInfo As CultureInfo = CultureInfo.CreateSpecificCulture("fr-CA")
customCurrencyInfo.NumberFormat.CurrencyNegativePattern = 8
Dim formatString As String = value.ToString("C", customCurrencyInfo)
Dim formatStringPositive As String = positiveValue.ToString("C", customCurrencyInfo)
myTextbox.text = formatString
myTextbox2.text = formatStringPositive
输出将是;
-123,45 美元 123,45 美元
但是这些国家呢:
-马来西亚-印度尼西亚 -
索马里
/非洲
-阿拉伯
如何在格式文本框中显示他们的货币?