By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,805 Members | 1,273 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,805 IT Pros & Developers. It's quick & easy.

User Controls in the toolbox in a solution

P: n/a
Ok, I already asked a question similar to this one but didn't found any
answer !

I've a solution with 2 projects in it. One of the project contains
Usercontrols and Inherited Controls. I work actively on both project,
changing the usercontrols and the second project (forms that uses the
usercontrols). When I build my solutuion, my user controls become available
in the Toolbox under "My user controls", with an icon of a user control, but
sometimes (often) event when I build the solution, the controls disappear
from the toolbox, I have to rebuild, open and exit the solution to make the
controls appear in the toolbox. Now you will tell me "Why don't you just do
Add/Remove item.. in the toolbox ?" That's what I tried, but the behaviour
seems different, the icon when I add a control like this is a little gear
(first difference), and I also can have 2 times the same control, one with
the little gear icon and the other with a usercontrol icon.

Someone can explain how this is working ? Maybe how references to
usercontrols works in .NET because we (our team) really don't know how to
work with this. Where can I find information about this ? Maybe it is just
an IDE problem.

Thanx

--
Philippe Meunier
Programmer
CHCA Computer Systems Inc.
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Philippe,

This seems to be an IDE problem as I have also never been able to figure out
the logic that governs user control visibility on the toolbar. I've
eventually given up on relying on the IDE and always add user controls
myself. They indeed appear as little gears, unless you specify a custom
bitmap with the ToolboxBitmapAttribute applied to a user control.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Philippe Meunier" <pm******@chca.ca> wrote in message
news:OD*************@TK2MSFTNGP11.phx.gbl...
Ok, I already asked a question similar to this one but didn't found any
answer !

I've a solution with 2 projects in it. One of the project contains
Usercontrols and Inherited Controls. I work actively on both project,
changing the usercontrols and the second project (forms that uses the
usercontrols). When I build my solutuion, my user controls become available in the Toolbox under "My user controls", with an icon of a user control, but sometimes (often) event when I build the solution, the controls disappear
from the toolbox, I have to rebuild, open and exit the solution to make the controls appear in the toolbox. Now you will tell me "Why don't you just do Add/Remove item.. in the toolbox ?" That's what I tried, but the behaviour
seems different, the icon when I add a control like this is a little gear
(first difference), and I also can have 2 times the same control, one with
the little gear icon and the other with a usercontrol icon.

Someone can explain how this is working ? Maybe how references to
usercontrols works in .NET because we (our team) really don't know how to
work with this. Where can I find information about this ? Maybe it is just
an IDE problem.

Thanx

--
Philippe Meunier
Programmer
CHCA Computer Systems Inc.


Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.