Hi,
i've have a Customized TabControl and a Customized TabPage, now i need to add CustomTabPages in CustomTabControl at Design-time.
This is generally accomplished creating a Custom CollectionEditor, i''ve tried to do the same with VWG framework but it doesn't seem to work, Visual Studio 2010 crash when i try to access TabControl Properties.
I've also tried to debug and i get a NullReferenceException.
this is the code i'm using:
public class ItsTabPageCollectionEditor : CollectionEditor
{
public ItsTabPageCollectionEditor()
: base(typeof(TabPageCollection))
{
}
protected override Type[] CreateNewItemTypes()
{
Type[] ret = null;
ret = new Type[] { typeof(ItsTabPage) };
return ret;
}
}
[Editor(typeof(ItsTabPageCollectionEditor), typeof(UITypeEditor))]
public new TabPageCollection TabPages { get { return base.TabPages; } }
Thanks in advance
Nicola