AbdallaHajjaj
New member
- Joined
- Nov 7, 2005
- Messages
- 2
- Programming Experience
- Beginner
i was trying to write a code where i can use
system.globalization namespace
system.collections namespace
to fill a list box with the country names that .net offer in regioninfo class ..
i don't know how to print them all .. well i tried and here is my code
Dim countries1 As New RegionInfo("AE")
Dim countries2 As New RegionInfo("ZW")
Dim allcountries As Single
For allcountries = countries1.DisplayName To countries2.DisplayName
Me.ListBox1.Items.Add(allcountries)
Next
and i tried to use cultures .. but no country names ..
' Create a CultureInfo Variable
Dim cu As CultureInfo
' Loop through the CultureTypes Enumeration
' and list the Culture Name in the Listbox
For Each cu In CultureInfo.GetCultures(CultureTypes.AllCultures)
Me.ListBox1.Items.Add(cu.EnglishName)
Next
can any one please help me listing the 110 countries in system.globalization.regioninfo into a listbox
system.globalization namespace
system.collections namespace
to fill a list box with the country names that .net offer in regioninfo class ..
i don't know how to print them all .. well i tried and here is my code
Dim countries1 As New RegionInfo("AE")
Dim countries2 As New RegionInfo("ZW")
Dim allcountries As Single
For allcountries = countries1.DisplayName To countries2.DisplayName
Me.ListBox1.Items.Add(allcountries)
Next
and i tried to use cultures .. but no country names ..
' Create a CultureInfo Variable
Dim cu As CultureInfo
' Loop through the CultureTypes Enumeration
' and list the Culture Name in the Listbox
For Each cu In CultureInfo.GetCultures(CultureTypes.AllCultures)
Me.ListBox1.Items.Add(cu.EnglishName)
Next
can any one please help me listing the 110 countries in system.globalization.regioninfo into a listbox