UserControl Globalization?

In the PageLoad event of your user control you can set the culture of the current thread: Me. Culture = "en-US Any internal framework calls after this point will use the current culture set for this thread, so for example the Convert.ToDouble() call will work here: Me. Culture = "en-US" Dim num as Double = Convert.

ToDouble("1,000.50") but this would not work: Dim num as Double = Convert. ToDouble("1.000,50") if we set the culture to French Canadian: Me. Culture = "fr-CA" Dim num as Double = Convert.

ToDouble("1.000,50") this will work and correctly parse the string because the default decimal separator for the French Canadian culture is a comma.

In the PageLoad event of your user control you can set the culture of the current thread: Me. Culture = "en-US" Any internal framework calls after this point will use the current culture set for this thread, so for example the Convert.ToDouble() call will work here: Me. Culture = "en-US" Dim num as Double = Convert.

ToDouble("1,000.50") ...but this would not work: Dim num as Double = Convert. ToDouble("1.000,50") ... if we set the culture to French Canadian: Me. Culture = "fr-CA" Dim num as Double = Convert.

ToDouble("1.000,50") ... this will work and correctly parse the string because the default decimal separator for the French Canadian culture is a comma.

Yo need to change the culture of the current thread.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions