473,569 Members | 2,916 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CultureInfo object

what's the full class hierarchy for the CultureInfo object in effect by
default ?
Nov 20 '05 #1
4 1773
* "John A Grandy" <johnagrandy-at-yahoo-dot-com> scripsit:
what's the full class hierarchy for the CultureInfo object in effect by
default ?


'System.Globali zation.CultureI nfo'

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
the NumberFormat type is not available for declarations via this class
hierarchy :

Dim MyNumberFormat As System.Globaliz ation.CultureIn fo.NumberFormat

what is the proper class hierarchy for declaring a reference of type
NumberFormat ?

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:bv******** *****@ID-208219.news.uni-berlin.de...
* "John A Grandy" <johnagrandy-at-yahoo-dot-com> scripsit:
what's the full class hierarchy for the CultureInfo object in effect by
default ?


'System.Globali zation.CultureI nfo'

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
* "John A Grandy" <johnagrandy-at-yahoo-dot-com> scripsit:
the NumberFormat type is not available for declarations via this class
hierarchy :

Dim MyNumberFormat As System.Globaliz ation.CultureIn fo.NumberFormat

what is the proper class hierarchy for declaring a reference of type
NumberFormat ?


There is no 'NumberFormat' class, you can use 'NumberFormatIn fo'
instead.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
How are you getting the CultureInfo object?
This is important because number/currency/date formats are valid only if you
have a fully-qualified culture (region & language), for example, "en-US" or
"fr-CA". Neutral cultureinfo instances (ones that only have language, such
as "en", or "fr", and no region) or invariant cultureinfo instances have
absolutely no formatting or parsing information. For example, a culture-info
instance based on "en" can't have date or number formatting rules, because
formatting can be different between the many English-speaking regions of the
world.

-Rob

"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
what's the full class hierarchy for the CultureInfo object in effect by
default ?

Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
6298
by: choyk1 | last post by:
Hi all, I cannot serialize CultureInfo property as below. It invokes InvalidOperationException. public class One { private CultureInfo culture;
1
3964
by: tommys | last post by:
Hi, I thought that using CultureInfo.CurrentUICulture would give me the current date format as set in the OS - but it did not work that way :-( When re-reading the docs I can see why: "Gets the CultureInfo that represents the current culture used by the Resource Manager to look up culture-specific resources at run time.", i.e. it gave me...
5
6883
by: Jason L James | last post by:
Hi have two subroutines that change the currentCulture property of my application. I can call either: System.Threading.Thread.CurrentThread.CurrentCulture = New CultureInfo("en-GB") or:
8
9162
by: G.Ashok | last post by:
Hi, I have created CultureInfo object and specified required digit grouping in it. The one of the overloaded ToString methods of Decimal type has parameters to format the value with required custom format and a IFormatProvider. I pass a custom format string for positive, negative and Zero (3 sections) and CultureInfo object containing the...
4
6249
by: Dirk Behnke | last post by:
How can I start a new process with a different CultureInfo? I have tried already to set the CultureInfo of the thread starting the new process before creating the Process object, but it doesn't help.
8
6134
by: Rico | last post by:
Hello Everyone, I observed something strange in some quick testing code: void Button1Click(object sender, System.EventArgs e) { CultureInfo culture = new CultureInfo("th-TH", false); tbxDisplayResult.Text = DateTime.Parse(tbxInputArea.Text, culture).ToString("yyyy MMMMMMMMMM dd");
8
2817
by: Phil Jollans | last post by:
Hi, I am having difficulty overriding the ToString() method of CultureInfo using Visual Studio 2005. Exactly the same code works fine with Visual Studio .NET 2003. What I am doing is adding objects which are derived from CultureInfo to a ListBox. I want the language name to be displayed in the native language, so I override the...
8
15036
by: =?Utf-8?B?T2xpdmllciBHSUw=?= | last post by:
Hello, I try to convert a volume stored as a string value in an XML file into a Decimal object. The volume is stored with comma as decimal separator ("210,12") according to french habits. To be independent from the culture of the current user, I use decimal.Parse(volume, new System.Globalization.CultureInfo("fr-FR", true)); but this...
0
2642
by: Dilip | last post by:
I ran into a situation at work regarding unicode character encodings and .NET cultures that left me a tad bit confused. I was trying to instantiate a CultureInfo object from a locale identifying a south chinese destination called the Hmong. Its usually represented as hm-HMN. I peruse the NativeName property to extract the name of the...
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8118
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7665
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6277
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5501
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.