Custom controls / Toolbox / Visual studio 2005

N

Nick Stansbury

Hi,

Recently upgraded to VS 2005 from 2003. Started rebuilding an asp.net app
from scratch. Not using projects (not sure at this point whether I like or
hate this). I've finished redeveloping all of our custom controls (see below
for the declareation). Our custom controls are in .vb files in the App_code
directory, along with all our other classes not in a control project or
anything like that.

I can't seem to find a way to add our custom controls to the toolbox. I've
tried add/remove items, but as there isn't a DLL to navigate to, I can't add
them that way. How do I do it?

Also - people keep talking about user controls *automatically* being added
into a "My User Controls" section of the toolbox. This isn't happening
either.

Any suggestions?

Thanks

Nick

Example custom control:

<Designer(GetType(MyNamespace.MyDesigner))> _
Public Class ThreadedDropDownList
Inherits WebControl
Implements INamingContainer

....
End Class
 
E

ElCapitan

as to my knowledge you need to first add the object tag in the html
body section

<object id="simpleControl1"
classid="WindowsControlLibrary1.dll#Microsoft.Samples.WinForms.Cs.UserControl1.UserControl1"
height="300" width="300" VIEWASTEXT><param name="Text" value="Simple
Control">
</object>

and stick the dll in the root directory (anywhere but the bin
directory),

now this is what i have read in hundreds of places, i just cant seem to
make it work in vb.net only in c#, good luck and let us know if this
works

Eliseo
 
C

CaffieneRush

Your dlls should be stored in your application web root directory's bin
directory NOT the application project directory - they should be
different.
E.g. c:\Inetpub\wwwroot\MyApplication\bin\MyApplication.dll
 

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

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,782
Latest member
ThomasGex

Latest Threads

Top