Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

WPF: CountryFlag Control

, 4 May 2011 CPOL
A WPF UserControl for displaying the flag of a particular country
CountryFlag_dll.zip
CountryFlag.dll
CountryFlag_src.zip
CountryFlag
CountryFlag
CountryFlag.sln.cache
CountryFlag.suo
bin
Debug
Flags
Afghanistan.png
Albania.png
Algeria.png
American_Samoa.png
Andorra.png
Angola.png
Anguilla.png
Antigua_and_Barbuda.png
Argentina.png
Armenia.png
Aruba.png
Australia.png
Austria.png
Azerbaijan.png
Bahamas.png
Bahrain.png
Bangladesh.png
Barbados.png
Belarus.png
Belgium.png
Belize.png
Benin.png
Bermuda.png
Bhutan.png
Bolivia.png
Bosnia.png
Botswana.png
Brazil.png
British_Virgin_Islands.png
Brunei.png
Bulgaria.png
Burkina_Faso.png
Burundi.png
Cambodia.png
Cameroon.png
Canada.png
Cape_Verde.png
Cayman_Islands.png
Central_African_Republic.png
Chad.png
Chile.png
China.png
Christmas_Island.png
Colombia.png
Comoros.png
Cook_Islands.png
Costa_Rica.png
Croatia.png
Cuba.png
Cyprus.png
Czech_Republic.png
Democratic_Republic_of_the_Congo.png
Denmark.png
Djibouti.png
Dominica.png
Dominican_Republic.png
East_Timor.png
Ecuador.png
Egypt.png
El_Salvador.png
Equatorial_Guinea.png
Eritrea.png
Estonia.png
Ethiopia.png
Falkland_Islands.png
Faroe_Islands.png
Fiji.png
Finland.png
France.png
French_Polynesia.png
Gabon.png
Gambia.png
Georgia.png
Germany.png
Ghana.png
Gibraltar.png
Greece.png
Greenland.png
Grenada.png
Guam.png
Guatemala.png
Guinea.png
Guinea_Bissau.png
Guyana.png
Haiti.png
Honduras.png
Hong_Kong.png
Hungary.png
Iceland.png
India.png
Indonesia.png
Iran.png
Iraq.png
Ireland.png
Israel.png
Italy.png
Ivory_Coast.png
Jamaica.png
Japan.png
Jordan.png
Kazakhstan.png
Kenya.png
Kiribati.png
Kuwait.png
Kyrgyzstan.png
Laos.png
Latvia.png
Lebanon.png
Lesotho.png
Liberia.png
Libya.png
Liechtenstein.png
Lithuania.png
Luxembourg.png
Macao.png
Macedonia.png
Madagascar.png
Malawi.png
Malaysia.png
Maldives.png
Mali.png
Malta.png
Marshall_Islands.png
Martinique.png
Mauritania.png
Mauritius.png
Mexico.png
Micronesia.png
Moldova.png
Monaco.png
Mongolia.png
Montserrat.png
Morocco.png
Mozambique.png
Myanmar.png
Namibia.png
Nauru.png
Nepal.png
Netherlands.png
Netherlands_Antilles.png
New_Zealand.png
Nicaragua.png
Niger.png
Nigeria.png
Niue.png
Norfolk_Island.png
North_Korea.png
Norway.png
Oman.png
Pakistan.png
Palau.png
Panama.png
Papua_New_Guinea.png
Paraguay.png
Peru.png
Philippines.png
Pitcairn_Islands.png
Poland.png
Portugal.png
Puerto_Rico.png
Qatar.png
Republic_of_the_Congo.png
Romania.png
Russian_Federation.png
Rwanda.png
Saint_Kitts_and_Nevis.png
Saint_Lucia.png
Saint_Pierre.png
Saint_Vicent_and_the_Grenadines.png
Samoa.png
San_Marino.png
Sao_Tom‚_and_Pr¡ncipe.png
Saudi_Arabia.png
Senegal.png
Serbia_and_Montenegro.png
Seychelles.png
Sierra_Leone.png
Singapore.png
Slovakia.png
Slovenia.png
Soloman_Islands.png
Somalia.png
South_Africa.png
South_Georgia.png
South_Korea.png
Soviet_Union.png
Spain.png
Sri_Lanka.png
Sudan.png
Suriname.png
Swaziland.png
Sweden.png
Switzerland.png
Syria.png
Taiwan.png
Tajikistan.png
Tanzania.png
Thailand.png
Tibet.png
Togo.png
Tonga.png
Trinidad_and_Tobago.png
Tunisia.png
Turkey.png
Turkmenistan.png
Turks_and_Caicos_Islands.png
Tuvalu.png
UAE.png
Uganda.png
Ukraine.png
United_Kingdom.png
United_States_of_America.png
Uruguay.png
US_Virgin_Islands.png
Uzbekistan.png
Vanuatu.png
Vatican_City.png
Venezuela.png
Vietnam.png
Wallis_and_Futuna.png
Yemen.png
Zambia.png
Zimbabwe.png
My Project
Flags
Application.ico
bin
Debug
CountryFlag.dll
Flags.exe
Flags.vshost.exe
Flags.vshost.exe.manifest
My Project
Imports System
Imports System.Reflection
Imports System.Resources
Imports System.Runtime.InteropServices

' General Information about an assembly is controlled through the following 
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.

' Review the values of the assembly attributes

<Assembly: AssemblyTitle("Flags")> 
<Assembly: AssemblyDescription("")> 
<Assembly: AssemblyCompany("")> 
<Assembly: AssemblyProduct("Flags")> 
<Assembly: AssemblyCopyright("Copyright @  2011")> 
<Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(False)>

'In order to begin building localizable applications, set 
'<UICulture>CultureYouAreCodingWith</UICulture> in your .vbproj file
'inside a <PropertyGroup>.  For example, if you are using US english 
'in your source files, set the <UICulture> to "en-US".  Then uncomment the
'NeutralResourceLanguage attribute below.  Update the "en-US" in the line
'below to match the UICulture setting in the project file.

<Assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.MainAssembly)> 

'The ThemeInfo attribute describes where any theme specific and generic resource dictionaries can be found.
'1st parameter: where theme specific resource dictionaries are located
'(used if a resource is not found in the page, 
' or application resource dictionaries)

'2nd parameter: where the generic resource dictionary is located
'(used if a resource is not found in the page, 
'app, and any theme specific resource dictionaries)
'<Assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)>

'The following GUID is for the ID of the typelib if this project is exposed to COM
<Assembly: Guid("65092d4e-616e-4b1f-bfba-d05b14ad1a5c")> 

' Version information for an assembly consists of the following four values:
'
'      Major Version
'      Minor Version 
'      Build Number
'      Revision
'
' You can specify all the values or you can default the Build and Revision Numbers 
' by using the '*' as shown below:
' <Assembly: AssemblyVersion("1.0.*")> 

<Assembly: AssemblyVersion("1.0.0.0")> 
<Assembly: AssemblyFileVersion("1.0.0.0")>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

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

Share

About the Author

Meshack Musundi
Software Developer
Kenya Kenya
Meshack is an avid programmer with a bias towards WPF and VB.NET. He has about 5 years of programming experience initially starting off with Java before shifting to .NET, thanks to the allure of WPF. He has developed several applications, and written several articles about them, which can be viewed here on CodeProject. He currently resides in a small town in Kiambu county, Kenya.
 
Awards;
  • CodeProject MVP 2013
  • CodeProject MVP 2012
  • Best VB.NET article of August 2013
  • Best VB.NET article of February 2013
  • Best VB.NET article of October 2012
  • Best VB.NET article of July 2012
  • Best VB.NET article of February 2012
  • Best VB.NET article of January 2012
  • Best VB.NET article of November 2011
  • Best VB.NET article of June 2011
  • Best VB.NET article of May 2011
  • Best VB.NET article of March 2011
  • Best VB.NET article of February 2011
  • Best VB.NET article of January 2011
  • Best VB.NET article of December 2010
  • Best VB.NET article of November 2010

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.141223.1 | Last Updated 5 May 2011
Article Copyright 2011 by Meshack Musundi
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid