Click here to Skip to main content
15,902,198 members
Home / Discussions / C#
   

C#

 
GeneralRe: Using custom controls in Windows Forms Pin
Heath Stewart24-Nov-03 5:12
protectorHeath Stewart24-Nov-03 5:12 
GeneralRe: Using custom controls in Windows Forms Pin
Radoslav Bielik24-Nov-03 5:17
Radoslav Bielik24-Nov-03 5:17 
GeneralRe: Using custom controls in Windows Forms Pin
Barry Lapthorn24-Nov-03 10:07
protectorBarry Lapthorn24-Nov-03 10:07 
GeneralRe: Using custom controls in Windows Forms Pin
Heath Stewart24-Nov-03 10:11
protectorHeath Stewart24-Nov-03 10:11 
GeneralRe: Using custom controls in Windows Forms Pin
Barry Lapthorn24-Nov-03 11:25
protectorBarry Lapthorn24-Nov-03 11:25 
GeneralRe: Using custom controls in Windows Forms Pin
Heath Stewart24-Nov-03 11:28
protectorHeath Stewart24-Nov-03 11:28 
GeneralRe: Using custom controls in Windows Forms Pin
Barry Lapthorn24-Nov-03 11:32
protectorBarry Lapthorn24-Nov-03 11:32 
GeneralRe: Using custom controls in Windows Forms Pin
Heath Stewart24-Nov-03 11:36
protectorHeath Stewart24-Nov-03 11:36 
You can, if you want to write your own designer and get the IToolboxService service provider (or you can get it from the Control.Site property at design-time) and call IToolboxService.AddLinkedToolboxItem, which means you also have to implement IToolboxItem that instantiates your control. If you do that, the control is only added to the toolbox for the project in which its loaded.

There's also one more trick that's possible, but sometimes hard to reproduce. If you open a control in the designer (after it's compiled) it is automatically added to the toolbox for the project in which the control is located. I believe this is also supposed to work for any project in your solution - but like I said - it's hard to reproduce.

 

-----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-----
GeneralToDouble problem Pin
Jose Vicente23-Nov-03 23:17
Jose Vicente23-Nov-03 23:17 
GeneralRe: ToDouble problem Pin
Heath Stewart24-Nov-03 5:07
protectorHeath Stewart24-Nov-03 5:07 
GeneralRe: ToDouble problem Pin
Jose Vicente24-Nov-03 5:08
Jose Vicente24-Nov-03 5:08 
GeneralRe: ToDouble problem Pin
Judah Gabriel Himango24-Nov-03 5:25
sponsorJudah Gabriel Himango24-Nov-03 5:25 
GeneralRe: ToDouble problem Pin
sammyh24-Nov-03 5:28
sammyh24-Nov-03 5:28 
GeneralThanks all Pin
Jose Vicente24-Nov-03 5:29
Jose Vicente24-Nov-03 5:29 
GeneralLost my entire Form design Pin
Nish Nishant23-Nov-03 21:11
sitebuilderNish Nishant23-Nov-03 21:11 
GeneralRe: Lost my entire Form design Pin
Braulio Dez24-Nov-03 1:06
Braulio Dez24-Nov-03 1:06 
GeneralRe: Lost my entire Form design Pin
Stephane Rodriguez.24-Nov-03 8:48
Stephane Rodriguez.24-Nov-03 8:48 
GeneralRe: Lost my entire Form design Pin
Alvaro Mendez24-Nov-03 11:20
Alvaro Mendez24-Nov-03 11:20 
GeneralRe: Lost my entire Form design Pin
Nish Nishant24-Nov-03 14:23
sitebuilderNish Nishant24-Nov-03 14:23 
GeneralRe: Lost my entire Form design Pin
J. Dunlap24-Nov-03 11:25
J. Dunlap24-Nov-03 11:25 
Generalelectronic books Pin
Lachezar23-Nov-03 20:33
Lachezar23-Nov-03 20:33 
GeneralRe: electronic books Pin
sammyh24-Nov-03 5:35
sammyh24-Nov-03 5:35 
QuestionPictures on toolbar buttons? Pin
Led_Lazarus23-Nov-03 19:25
Led_Lazarus23-Nov-03 19:25 
AnswerRe: Pictures on toolbar buttons? Pin
Led_Lazarus23-Nov-03 19:33
Led_Lazarus23-Nov-03 19:33 
GeneralSpy on listbox Pin
StruBoy23-Nov-03 15:14
StruBoy23-Nov-03 15:14 

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.