Inherit Designer for custom control
Ok, I am 'trying' to make a SuperTabPage that inherits from TabPage. So I make a new class, inherit TabPage.
Of course, the problem is, you can't use the IDE to help you visually layout the controls in the tab page.
There is however, a TabPageDesigner class that if implemented properly by using the <Designer> attribute ... ie. <Designer("System.....") Public My Class SuperTabPAge...
should allow you to visually configure the visual aspect using the IDE.
So, does anyone know jack about assigning .Net Designers to a class?
Re: Inherit Designer for custom control
Quote:
Originally posted by nemaroller
Of course, the problem is, you can't use the IDE to help you visually layout the controls in the tab page.
I thought your problem was not being able to place other controls on your tabpage, not putting your own TabPages into the tab control's tabpage collection.
Re: Re: Inherit Designer for custom control
Quote:
Originally posted by PeteD
I thought your problem was not being able to place other controls on your tabpage, not putting your own TabPages into the tab control's tabpage collection.
That was my problem. Solved it by tricking the IDE by switching Inherits TabPage to Inherits UserControl to lay out the controls, and then switching it back to Inherits Tabpage when I was finished.