Home All Groups Group Topic Archive Search About

How to include System.Globalization in my VB project

Author
28 Jun 2006 9:18 AM
Domac
Please i have a problem,
System.Globalization is not listed in my .net references list ???

How to include it , i need CultureInfo object to format string to currency!


Thanks!

Author
28 Jun 2006 10:11 AM
Herfried K. Wagner [MVP]
"Domac" <domac.kovace***@zg.t-com.hr> schrieb:
> System.Globalization is not listed in my .net references list ???
>
> How to include it , i need CultureInfo object to format string to
> currency!

Simply import the namespace, you do not need any additional references:

\\\
Imports System.Globalization
....
Dim c As CultureInfo = ...
///

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
28 Jun 2006 10:34 AM
Domac
Thanks!!!!




Herfried K. Wagner [MVP] wrote:
Show quoteHide quote
> "Domac" <domac.kovace***@zg.t-com.hr> schrieb:
>> System.Globalization is not listed in my .net references list ???
>>
>> How to include it , i need CultureInfo object to format string to
>> currency!
>
> Simply import the namespace, you do not need any additional
> references:
> \\\
> Imports System.Globalization
> ...
> Dim c As CultureInfo = ...
> ///