Click here to Skip to main content
15,946,012 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

Can anyone has a solution for the problem i am having .

I am using the CultureInfo class to get the countries list in a dropdownlist

But i am missing some countries.I am in south africa , so i need all the country names in africa to be in my dropdown list.

Please some one help me to how to get all the countries or how to get the main countries and with the list of african countries.

Thanks guys.

Compile the list yourself. May I suggest Wikipedia?
Share this answer
CultureInfo won't be too helpful as it really centres around languages and doesn't store continent information(I'm not sure it could: ru-RU
Russian spans Europe and Asia for example, as does Turkish ).

The only thing I can suggest is to create a list of cultures that are African. The List of cultures can be found here:MSDN CultureInfo[^]. African countries seem to be poorly served: Afrikaans, English(SA & Zimbabwe) and North african Arabic seem to be the only options.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900