Get Control into Toolbox just like UserControl ...

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

If i derive from UserControl my Control apears in the toolbox. But I
want to extend existing Controls like Button , treecontrol . I found
some hints which attributes to set but i didnt succeed till now ..

[
ToolboxItem(true) , DesignTimeVisible(true)
]
[
Designer(typeof(System.ComponentModel.Design.ComponentDesigner))
]
[

TypeConverterAttribute(typeof(System.ComponentModel.ExpandableObjectConverter))
]
[
ToolboxItemFilter("System.Windows.Formsl")
]
[
DesignerCategory ("UserControl")
]
public class ArrowButton : Button
{
.........


thx in advance

dulo
 
Stoitcho said:
Hi John,

take a look at this article
http://windowsforms.net/articles/shapedesigner.aspx
I believe it will answer your questions
I've already read this article and i didnt find the information i
needed. I want to mimic the behaviour of usercontrol. That it apears in
the toolbox without compiling to a dll and adding this to the toolbox.
Here i found somebody with the same problem and some part of a solution

http://www.dotnet247.com/247reference/msgs/2/11921.aspx

thx in advance

Dulo
 
Hi John,

Look at the ShapeContainerRootDesigner | ToolBox support section the code
dor OnLoadComplete. I think that is what you are after
 
Back
Top