Does anyone know of a nice, usable class that everyone on here could benefit from to use in populating the ComboBox controls on a form for the Country and State fields?
I hate having to reinvent the wheel every time, and someone has probably done a very nice piece of work somewhere.
Bonus points if the existing class can return a list of State options whenever the Country is selected!
I’m currently developing this for a Windows Form (non-web application), and this project can’t pull from a website.
OK, so I made one.
I built it nice and generic, so anyone should be able to use it
There is a class at the bottom called
US_Statesthat is used as a container to store the State Name and State Abbreviation.