Click here to Skip to main content
15,925,602 members
Home / Discussions / C#
   

C#

 
GeneralRe: Also..... Pin
Admiral Ackbar12-Jun-04 11:30
Admiral Ackbar12-Jun-04 11:30 
GeneralRe: Also..... Pin
User 96257812-Jun-04 17:08
User 96257812-Jun-04 17:08 
GeneralWindows Services - Config App Pin
AndyBewley10-Jun-04 12:41
sussAndyBewley10-Jun-04 12:41 
GeneralRe: Windows Services - Config App Pin
Xiangyang Liu 刘向阳10-Jun-04 14:36
Xiangyang Liu 刘向阳10-Jun-04 14:36 
Generalhelp in dll Pin
SherKar10-Jun-04 11:57
SherKar10-Jun-04 11:57 
GeneralRe: help in dll Pin
Colin Angus Mackay10-Jun-04 12:20
Colin Angus Mackay10-Jun-04 12:20 
GeneralUser Controls Pin
Flack10-Jun-04 11:18
Flack10-Jun-04 11:18 
GeneralRe: User Controls Pin
Heath Stewart11-Jun-04 3:20
protectorHeath Stewart11-Jun-04 3:20 
Unfortunately, you're pretty much at the mercy of Visual Studio .NET when it comes to this behavior. Sometimes it works; other times, it doesn't. Sigh | :sigh:

One thing to keep in mind, however, is that I doubt you'll be needing the control in the toolbox so often within a solution. If this is a control you use often, then finalize the code and "install" it on your machine as a third-party control is. Put a copy in the Global Assembly Cache (drag and drop it into %WINDIR%\assembly or use gacutil.exe -i <filename>) for run-time use, so you don't have to worry about re-locating the file for each project that uses it.

If you need to include this in a project in order to design it and it doesn't show up in the toolbox, just do what the designer does (which isn't really magic - it's just code that you can type as well). Add a declaration along with the rest toward the top of your class definition. Go into the InitializeComponent method (hidden in a region) and instantiate it like all the others and add it to the container control's Controls collection property. When you switch back to design view, you can begin designing it.

 

Microsoft MVP, Visual C#
My Articles
GeneralAMS Profile Question Pin
centiipede10-Jun-04 11:02
centiipede10-Jun-04 11:02 
GeneralRe: AMS Profile Question Pin
Heath Stewart11-Jun-04 3:15
protectorHeath Stewart11-Jun-04 3:15 
GeneralRe: AMS Profile Question Pin
Alvaro Mendez11-Jun-04 5:17
Alvaro Mendez11-Jun-04 5:17 
GeneralRe: AMS Profile Question Pin
centiipede11-Jun-04 7:02
centiipede11-Jun-04 7:02 
Generalrunnig SWF file on asp.net Pin
Amirjalaly10-Jun-04 11:00
Amirjalaly10-Jun-04 11:00 
GeneralRe: runnig SWF file on asp.net Pin
Heath Stewart11-Jun-04 3:12
protectorHeath Stewart11-Jun-04 3:12 
Generalconnecting throw modem Pin
Amirjalaly10-Jun-04 10:50
Amirjalaly10-Jun-04 10:50 
GeneralRe: connecting throw modem Pin
Heath Stewart11-Jun-04 3:05
protectorHeath Stewart11-Jun-04 3:05 
QuestionSorting DataGrid => DataTable ?? Pin
V.10-Jun-04 9:25
professionalV.10-Jun-04 9:25 
AnswerRe: Sorting DataGrid =&gt; DataTable ?? Pin
Bill Dean10-Jun-04 10:04
Bill Dean10-Jun-04 10:04 
GeneralDataGrids and Business Objects Pin
mchean10-Jun-04 9:16
mchean10-Jun-04 9:16 
GeneralRe: DataGrids and Business Objects Pin
Heath Stewart10-Jun-04 10:17
protectorHeath Stewart10-Jun-04 10:17 
GeneralRe: DataGrids and Business Objects Pin
mchean11-Jun-04 8:24
mchean11-Jun-04 8:24 
GeneralRe: DataGrids and Business Objects Pin
Heath Stewart11-Jun-04 8:55
protectorHeath Stewart11-Jun-04 8:55 
GeneralRe: DataGrids and Business Objects Pin
mchean11-Jun-04 9:06
mchean11-Jun-04 9:06 
GeneralRe: DataGrids and Business Objects Pin
Heath Stewart11-Jun-04 9:09
protectorHeath Stewart11-Jun-04 9:09 
GeneralMonitoring Database Exceptions Pin
aberger5610-Jun-04 8:35
aberger5610-Jun-04 8:35 

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.