473,699 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(tru e) , DesignTimeVisib le(true)
]
[
Designer(typeof (System.Compone ntModel.Design. ComponentDesign er))
]
[

TypeConverterAt tribute(typeof( System.Componen tModel.Expandab leObjectConvert er))
]
[
ToolboxItemFilt er("System.Wind ows.Formsl")
]
[
DesignerCategor y ("UserContro l")
]
public class ArrowButton : Button
{
.........
thx in advance

dulo
Nov 16 '05 #1
3 1974
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(tru e) , DesignTimeVisib le(true)
]
[
Designer(typeof (System.Compone ntModel.Design. ComponentDesign er))
]
[

TypeConverterAt tribute(typeof( System.Componen tModel.Expandab leObjectConvert e
r)) ]
[
ToolboxItemFilt er("System.Wind ows.Formsl")
]
[
DesignerCategor y ("UserContro l")
]
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 ShapeContainerR ootDesigner | 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.u tanet.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
2013
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 to the My User Control tab. Any ideas? Thanks in advance, Henke!
2
6804
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 is contained in the same assembly as the control. As far as I know, the only way to do this using the designer is to add the UserControl-derived object
2
4778
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 applications I might need to write. Back in my day ;-) I would have written a user control for use from within VB, which I could still do, however - I also have the (more appealing from my perspective) option of deriving a control from the .NET base...
2
1796
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 they all seem to say either nothing about this or that this is "out of the scope of this book", even "Professional ASP.NET". I have a ActiveX component that I'd like to expose through a .NET wrapper so in the case that a client browses to my...
1
3106
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 they all seem to say either nothing about this or that this is "out of the scope of this book", even "Professional ASP.NET". I have a ActiveX component that I'd like to expose through a .NET wrapper so in the case that a client browses to my...
14
1441
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 I create a class called 'mytextbox.vb' which inherits the windows.forms.textbox, with some additional functionlity, is there an easier way of adding instances of this derived class to my form than by modifying
4
2437
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 System.Windows.Forms.Design.ControlDesigner I get an error saying that the Type is not defined. I cut and pasted all the imports and line from the MSDN. Would appreciate any help.
5
1993
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 like this is a bug or that .NET doesn't support what I trying to do. I hope that one that is is microsoft certified read this because this must be a bug.
15
6512
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 accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
17
7417
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 tabControl begins to cycle through the tabPages, just as it does in Visual Studio, IE7 etc.. any tabbed program. I need this blocked.
0
8685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9172
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8908
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3054
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.