Groups | Blog | Home
all groups > vb.net > march 2005 >

vb.net : New Control Not showing up in Add/Remove Coponents List


Zorpiedoman
3/15/2005 9:05:03 PM
Horay!

I have just put the finishing touches on a new User Control...

The" Jelly Button"

I created a setup program which runs fine. I see the .dll nicely in the GAC.

How come it does not show up in my Add/Remove componenets list when I try to
add it to the toolbar?


--
Zorpiedoman
3/16/2005 9:09:08 AM
Excellent. This answers my question perfectly.

-Zorpy
Herfried K. Wagner [MVP]
3/16/2005 11:51:57 AM
"Zorpiedoman" <nowheremane@beatles.com> schrieb:
[quoted text, click to view]

The article below will show you how to add an assembly that is installed
into the GAC to the "Add references" dialog. Maybe this will fix your
problem too:

How to display an assembly in the Add Reference dialog box
<URL:http://support.microsoft.com/?scid=kb;EN-US;306149>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Mona
3/16/2005 1:06:41 PM
Hello Zorpie,

To make a user control visible in the Tool box you need to add this user =
control to the=20
toolbox to make it available to other projects and forms. To do that, =
open a windows form=20
or use an existing form. Right-click on the Windows Form tab section on =
the toolbox and click=20
on Customize Toolbox.
Clicking on Customize Toolbox opens "Customize Toolbox" dialogue box

On this window select the .NET Framework components tab which displays a =
list. Click browse=20
to add the dll of the user control we created and select the dll file =
from the bin directory of the=20
Windows Control library project. Once that is done, click OK. The dll of =
the user control gets=20
added to the .NET Framework Components. Select that and click OK. The =
user control which=20
we created gets added to the toolbox. Now this control can be used like =
other controls in the toolbox.=20
Alternatively, the user control can be added to the toolbox in another =
way. To do that, right-click on the=20
References item in the Solution Explorer window and select Add Reference =
which opens the Add Reference=20
dialogue box. Select the projects tab and double-click the User Control =
item. That adds item to the selected=20
components box at the bottom of the dialog. click OK to finish.=20

If the assembly doesn't show up in the Add/Remove components list, you =
can browse and locate it.
HTH

Mona



[quoted text, click to view]
AddThis Social Bookmark Button