This post has been migrated from www.experimentsincode.com, we apologise if some of the images or content is missing

The other day I need to create a custom property field for a Web Part, this field needed to allow the users to select a value from a dynamically populated dropdown. After search across the internet for how to do this I found plenty of articles on creating a ToolPart which is used by SharePoint but this Web Part is part of a site that doesn't use SharePoint. The alternative on was an EditorPart which I will detail below.