public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { if (context == null || provider == null) { return base.EditValue(context, provider, value); } using (FolderSelectDialog dlg = new FolderSelectDialog()) { dlg.Title = "Browse for a folder..."; if (dlg.ShowDialog()) { value = dlg.FileName; } } return value; }