Ho trovato questo codice per VB:
codice:
Imports System
Imports System.Globalization
Class NumberFormatInfoSample
Public Shared Sub Main()
' Gets a NumberFormatInfo associated with the en-US culture.
Dim nfi As NumberFormatInfo = New CultureInfo("en-US", False).NumberFormat
' Displays a value with the default separator (".").
Dim myInt As Int64 = 123456789
Console.WriteLine(myInt.ToString("C", nfi))
' Displays the same value with a blank as the separator.
nfi.CurrencyDecimalSeparator = " "
Console.WriteLine(myInt.ToString("C", nfi))
End Sub 'Main
End Class 'NumberFormatInfoSample
'
'This code produces the following output.
'
'$123,456,789.00
'$123,456,789 00
'
Dove devo scriverlo per modificare le impostazioni?