473,396 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Get Control into Toolbox just like UserControl ...

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.Compo nentDesigner))
]
[

TypeConverterAttribute(typeof(System.ComponentMode l.ExpandableObjectConverter))
]
[
ToolboxItemFilter("System.Windows.Formsl")
]
[
DesignerCategory ("UserControl")
]
public class ArrowButton : Button
{
.........
thx in advance

dulo
Nov 16 '05 #1
3 1953
Hi John,

take a look at this article
http://windowsforms.net/articles/shapedesigner.aspx
I believe it will answer your questions

--
HTH
Stoitcho Goutsev (100) [C# MVP]
"John Smith" <sm***@aon.at> wrote in message
news:c9**********@newsreader1.utanet.at...
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.Compo nentDesigner))
]
[

TypeConverterAttribute(typeof(System.ComponentMode l.ExpandableObjectConverte
r)) ]
[
ToolboxItemFilter("System.Windows.Formsl")
]
[
DesignerCategory ("UserControl")
]
public class ArrowButton : Button
{
.........
thx in advance

dulo

Nov 16 '05 #2
Stoitcho Goutsev (100) [C# MVP] wrote:
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
Nov 16 '05 #3
Hi John,

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

--
HTH
Stoitcho Goutsev (100) [C# MVP]
"John Smith" <sm***@aon.at> wrote in message
news:c9*********@newsreader1.utanet.at...
Stoitcho Goutsev (100) [C# MVP] wrote:
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

Nov 16 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Henke | last post by:
I added a project to my solution that contains a user control. Now I 'd like to add the user control from that project to a form in my solution. The problem is that the control doesn't gets added...
2
by: Chien Lau | last post by:
I frequently define internal UserControl-derived classes in my WinForms apps: internal class MyUserControl:UserControl{ ... } I'll often need to embed these controls in a Form, whose class...
2
by: adbarnet | last post by:
Hi, I'm a C++ developer coming fresh to c# for GUI development. For the project I'm working on, I need a specialised control (a treeview derivative) which would be very useful in other...
2
by: Mehr H | last post by:
I have been working on this for several days and am still have had no success in achieving this. Pleae help. It seems that documentation for this is very limited. I have looked in several books and...
1
by: Mehr H | last post by:
I have been working on this for several days and am still have had no success in achieving this. Pleae help. It seems that documentation for this is very limited. I have looked in several books and...
14
by: Graham Blandford | last post by:
Hi there, A quickie I think... If I create a new class that inherits the values of a windows form component class, can there ever be a visual representation of this in the .Net IDE? E.g. if...
4
by: Dennis | last post by:
I am trying to set the default design proerties in a control I have derived from the Panel Class. I thought I'd found how to do it from the MSDN but the following line doesn't work: Inherits...
5
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
17
by: Kbalz | last post by:
I'm developing a Wizard type program, and I'm flipping between steps by using a TabControl.. buttons on each tabPage move to the next or previous tabPage. When I press CTRL+Tab however, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.