Hi bdbull,
Based on my understanding, you want to hide the sub properties of Font in the PropertyGrid for your component, right? If so, you should custom a TypeConvert for the Font of your component. Try something like the following. It helps you hide the sub properties.
Code Snippet
public partial class MyControl : UserControl
{
public MyControl()
{
InitializeComponent();
}
[TypeConverter(typeof(MyFontConvert))]
public override Font Font
{
get { return base.Font; }
set { base.Font = value; }
}
}
class MyFontConvert : FontConverter
{
public override bool GetPropertiesSupported(ITypeDescriptorContext context)
{
return false;
}
}
If you want the use can only edit the Font name and size, you need to custom an Editor for the Font. Check the following thread for a sample about how to custom an Editor.
· http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2199489&SiteID=1
Hope this helps.
Best regards.
Rong-Chun Zhang