Windows Develop Bookmark and Share   
 index > Windows Forms Designer > DesignerHost.exe Name property
 

DesignerHost.exe Name property

I'm working with the DesignerHost.exe example from Microsoft to build a custom form designer. Found here:  http://support.microsoft.com/?id=813808

My problem is that I can't get the NAME property to appear in the properties grid for the forms and controls.   Does anyone know how to get the NAME property to show up in the property grid? Thanks,
juffowup  Tuesday, January 10, 2006 6:44 AM
Hi, Juffo

I had the same problem and thought I solved it but it got bigger... Anyways, what I did was to add a IExtenderListService implementation to my service pack. You know, all the "serviceContainer.AddService(...)" stuff.

The implementation is quite basic:

public IExtenderProvider[] GetExtenderProviders()
{

if (extenderProviders == null)
{
extenderProviders = new ArrayList();
}

IExtenderProvider[] e = new IExtenderProvider[extenderProviders.Count];
extenderProviders.CopyTo(e, 0);
return e;
}

Just add THE Interface to your DesignerHost or create a different class (that's up to you) and you'll know what to do next.

Have fun , 7Ţurţuri.
7 Ţurţuri  Wednesday, April 15, 2009 11:15 AM

You can use google to search for other answers

Custom Search

More Threads

• Dynamic control bars
• Groupbox not retaining dimensions when inheriting tab control on form.
• How to custom draw ListView or other common controls like TreeView?
• Serializing a Collection
• winform toolstrip button image size not change
• How to have drawings show up in Design view
• Form Designer Questions
• ControlDesigner at runtime
• Wizard Form - Component Designer
• Docking and Stacking