TabControl Inheritance

I'm creating a really simple my own TabControl Inherting from the orignal one to just add an Indexer based on String not the integer.

All works fine and gets compiled. Now after building the project when I drag that control from the Tool Box to my Form, I get an Exception in the Form Designer saying:

"Failed to create component "MyTabControl"...............", with large Stack Trace. Can anybody tell me what's wrong with this

Best Regards,




Answer this question

TabControl Inheritance

  • Peregrin

    Make sure that you have .xmta file in your control's project that includes DesktopCompatible attribute:

    <Class Name="SomeNamespace.CustomTabControl">
    <DesktopCompatible>true</DesktopCompatible>
    </Class>


  • tornin2

    Hello Alex,

    Thanks a lot for the reply, I just solved that issue, that was not problem in code or with anyfile. I read somewhere on internet that this exception is raised form the several reasons, like many window handles are created etc. Out of memory. Actually my computer was really out of memory that time. I just restarted my PC, created a new application put that Control on the form and all was fine. This was somehow confusing for me but its done now!

    Thanks for the help!

    Best Regards,



  • TabControl Inheritance