Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Custom controls / Toolbox / Visual studio 2005

Thread Tools

Custom controls / Toolbox / Visual studio 2005

Nick Stansbury
Posts: n/a

Recently upgraded to VS 2005 from 2003. Started rebuilding an 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

Any suggestions?



Example custom control:

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

End Class

Reply With Quote
Posts: n/a
as to my knowledge you need to first add the object tag in the html
body section

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

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

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


Reply With Quote
Posts: n/a
Your dlls should be stored in your application web root directory's bin
directory NOT the application project directory - they should be
E.g. c:\Inetpub\wwwroot\MyApplication\bin\MyApplication .dll

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling browser back button for GridView Paging and Sorting in Ajax1.1 and 3.5 (using Visual Studio 2005/ Visual studio 2008) anil reddy ASP .Net 0 02-11-2009 04:22 PM
Empty Toolbox in Visual Studio 2005. ASP .Net 0 08-12-2007 07:50 PM
Is Visual Studio 2005 complict with Visual Studio 2003 rockdale ASP .Net 1 08-23-2006 07:20 PM
Should I write Visual studio 2005 or Visual studio 2003 MCSD =?Utf-8?B?VmlqYXk=?= Microsoft Certification 14 06-30-2006 09:05 AM