Control appears twice in toolbox

J

Just Me

Some of my controls appear twice in my tool box.
One has an icon that looks like gear.
the other icon is a rectangle containing 4 squares plus a small rectangle
and a blue line at the top. Actually it looks like a miniature windows form.

I can delete and re-add the one with the gear but the other one appeared on
its own and there appears to be no way to remove it.

Does anyone have items in their toolbox with the 4-squares rectangle icon?

Can anyone shed light on why there are two icons with the same name in my
toolbox?


Thanks
 
G

Guest

Since no one else has taken a stab at this, I'll tell you what I think. If
you go to Customize Toolbox, you will see that the item is listed and checked
as many times as you see it in the toolbox. You will notice that each comes
from a different version number. I think that since VB builds separate dll's
for debugging and release, that both versions get represented in the ToolBox.
If you ever re-use a namespace, or even same-named classes within two
different namespaces, I think that .Net probes using Reflection and rounds up
those other versions to give you the choice.

The solution should be as easy as figuring out which dll version you want to
use, and unchecking the other items.

If somebody has more knowledge about this, please chime in.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top