How put TabPage into ToolBox?

  • Thread starter Thread starter Guest
  • Start date Start date
Why do you need to?

But if you wanted to, the only way I can think of would be to inherit the
TabPage class, and mark it with a ToolBoxItem(True) attribute. However, I am
not sure how useful it would be.
 
Thanks, What I want is to customize TabPage. If I could put it into ToolBox,
then I probally can drag it into the form and customize it visually.
 
Attributes are not the same thing as properties. You need to look up
attributes, in particular the toolboxitem attribute.

It won't help you, because even though you'll be able to drag onto the
screen and customize it - how are you going to add it to a particular
tabcontrol? The tab control designer doesn't let you add existing tab pages
you have defined someplace - it will just add new ones.
 
I have searched all public and protected members of TabPage and could not
find "toolboxitem", Mybe there is no such stuff.

You are right. Even I can do it I still cannot reach the goal. So I shit to
other thinking
 
I think I got idea. I can create a user control. Then put the control into
TabPage and fill it.
 
Back
Top