473,396 Members | 1,748 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.

Custom Control not appearing in Toolbox

When I create a custom control inside my Windows Application project
it does not appear in the toolbox. I'm using Visual Studio 2005 (Team
System for Developers), so this should appear automatically, right?

I've compiled the application and selected show all items, but the
controls do not appear.

If I create an external Windows Control library and import the
controls they appear. I also tried resetting the toolbox, then
creating a new control. As the behaviour of resetting the toolbox is
to remove custom controls, could this now be my problem? Either way,
is there a setting or something I'm missing so Visual Studio will show
the controls automatically?

Thanks
Dec 28 '07 #1
1 5233
On Fri, 28 Dec 2007 06:20:44 -0800, JTC^..^ <da**@jazzthecat.co.ukwrote:
When I create a custom control inside my Windows Application project
it does not appear in the toolbox. I'm using Visual Studio 2005 (Team
System for Developers), so this should appear automatically, right?
Yes. Assuming the control is properly referenced, either by being an
imported library or by being part of a project within the solution itself,
it should show up in the Toolbox.

I don't know off-hand what the problem might be. I suspect there's some
sort of error in the implementation of the control. One way to test that
would be to build the exact control as a library, and import it into a
completely different solution's project and see if it shows up there. I
would guess that it won't.

If it doesn't, then you need to figure out what's wrong with the control
implementation. You may want to post a _concise_ but complete sample of
code that reproduces the problem, since otherwise it's not really possible
for anyone to comment specifically on what's wrong.

If the control does show up when imported into a different solution, then
I really don't know. It seems likely that that means there's something
about the solution in which it's contained that is somehow suppressing it,
but what that could be I have no idea.

Another test you might do is to create a brand new empty solution, and add
a new Custom Control class to the solution, to see if it shows up in the
toolbox. That way you know for sure there's nothing that you might have
added to the class that would cause a problem. If it doesn't show up in
that scenario, there's definitely something odd going on with VS. If it
does show up in that scenario, that's further support for the theory that
you've got something particularly wrong in the custom control that's not
showing up, probably related to code you added yourself.

Finally, I suppose it's possible that there's some user setting that
inhibits controls from showing up in the Toolbox, but what that might be I
don't know, and it seems odd that it would apply only to a control from
within the same solution.

Pete
Dec 28 '07 #2

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

Similar topics

3
by: Helmut Wagensonner | last post by:
Hi, I have created a custom textBox within a C# project. I want to put that custom textBox on a form now. I heard about a way, to place that user control onto a form within the same project,...
6
by: Suzanne | last post by:
Hi all, I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
2
by: Tony Hedge | last post by:
Hello, Framework: NET 1.1, Language VB So I am going through the basic walkthrough example in .NET on how to create a simple custom control. Takes about 2 minutes and when done I have a DLL...
5
by: craigkenisston | last post by:
I created a derived class from "Literal". I put the code in the App_Code folder and the control is working as expected. Now, I wan this control to be in the ToolBox, just like the others, what...
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...
5
by: John Kotuby | last post by:
Hi all, This is my first time trying to creaet and use a custome Web Control in a Web Site project in ASP.NET 2.0 with VS 2005 and VB. I created the control in a separate Web Control Library...
0
by: R.A.F. | last post by:
Hi, I wrote a little app which should add on Toolbox palette my custom controls. however, it does not work. it creates well my TAB with my custom name, but it does not add my custom control....
2
by: Just Me | last post by:
I want a Base Class to derive my other web controls from, but I dont want it to appear in the toolbox, I think there must be a class attribute for this, can anyone tell me the exact syntax I need...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.