Click here to Skip to main content
15,883,901 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 6:57
Radoslav Bielik27-Jan-04 6:57 
GeneralRe: Custom controls Pin
John Fisher27-Jan-04 7:12
John Fisher27-Jan-04 7:12 
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 7:26
Radoslav Bielik27-Jan-04 7:26 
GeneralRe: Custom controls Pin
John Fisher27-Jan-04 7:37
John Fisher27-Jan-04 7:37 
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 7:45
Radoslav Bielik27-Jan-04 7:45 
GeneralRe: Custom controls Pin
John Fisher27-Jan-04 12:44
John Fisher27-Jan-04 12:44 
GeneralRe: Custom controls Pin
Nick Parker27-Jan-04 6:56
protectorNick Parker27-Jan-04 6:56 
GeneralRe: Custom controls Pin
Heath Stewart27-Jan-04 7:02
protectorHeath Stewart27-Jan-04 7:02 
The documentation states that this behavior only works on controls derived form System.Windows.Forms.UserControl.

If you want to create a custom designer, however, you can have other controls show up for designed components (that use that designer) through various means. You can, for instance, request the IToolboxService in your Initialize override in your designer and add ToolboxItems and categories. You can also do this with your control without using a designer by override the Site property. If you look at the documentation for the System.Drawing.Design.ToolboxItem class in the .NET Framework SDK, you can see an example of this latter method.

There's many other ways to do something like this, too. I'd recommend you look over the System.ComponentModel, System.ComponentModel.Design, System.Drawing.Design, and System.Windows.Forms.Design namespaces. There's a lot of great classes and interfaces in there you can use. There's also topics in the .NET Framework SDK that talk about designers, editors, and other ways to extend design-time development for your controls.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 7:21
Radoslav Bielik27-Jan-04 7:21 
GeneralRe: Custom controls Pin
Heath Stewart27-Jan-04 8:53
protectorHeath Stewart27-Jan-04 8:53 
GeneralRe: Custom controls Pin
Radoslav Bielik27-Jan-04 20:14
Radoslav Bielik27-Jan-04 20:14 
GeneralAnother Internet Explorer question... Pin
profoundwhispers27-Jan-04 5:13
profoundwhispers27-Jan-04 5:13 
GeneralRe: Another Internet Explorer question... Pin
Heath Stewart27-Jan-04 6:31
protectorHeath Stewart27-Jan-04 6:31 
GeneralAny idea about editing mpeg2 files Pin
habiburrehman27-Jan-04 4:19
habiburrehman27-Jan-04 4:19 
GeneralVoice in C# Pin
Abkarino27-Jan-04 3:35
Abkarino27-Jan-04 3:35 
GeneralRe: Voice in C# Pin
Heath Stewart27-Jan-04 4:40
protectorHeath Stewart27-Jan-04 4:40 
GeneralRe: Voice in C# Pin
bindu012321-Apr-09 21:21
bindu012321-Apr-09 21:21 
GeneralMessage Queues & Service Pin
Dpriya27-Jan-04 2:21
Dpriya27-Jan-04 2:21 
GeneralRe: Message Queues & Service Pin
Heath Stewart27-Jan-04 4:32
protectorHeath Stewart27-Jan-04 4:32 
GeneralEnable scroll wheel in a panel Pin
Jonathan Slenders_27-Jan-04 0:37
sussJonathan Slenders_27-Jan-04 0:37 
GeneralRe: Enable scroll wheel in a panel Pin
Heath Stewart27-Jan-04 4:28
protectorHeath Stewart27-Jan-04 4:28 
GeneralRe: Enable scroll wheel in a panel Pin
J. Dunlap27-Jan-04 5:31
J. Dunlap27-Jan-04 5:31 
GeneralAutomating word documents from C# Pin
Marix27-Jan-04 0:06
Marix27-Jan-04 0:06 
GeneralRe: Automating word documents from C# Pin
Mazdak27-Jan-04 1:59
Mazdak27-Jan-04 1:59 
GeneralRe: Automating word documents from C# Pin
Heath Stewart27-Jan-04 4:24
protectorHeath Stewart27-Jan-04 4:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.