Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Control

Status
Not open for further replies.

sillysod

Technical User
Jan 6, 2004
300
GB
Hi there

I have made 2 user controls and everything was working great

however i have been fiddling and just cannot get the controls back onto the toolbox, and while fiddling all the ones i have on forms have been deleted, so i cant even copy and paste

the references are all there etc but how do i get them to show on the toolbox?

They arent dll files they are .vb and .resx so cannot add them through add / remove items and browsing

i hope to god i havent broke my solution :(

i have tried importing everything into a blank solution too
 
try deleting your compiled references and make a new build
 
im not sure what you mean?

i tried opening a new solution and importing everything across, but that didnt work
 
From memory, so this might not be exact. Build your library assembly that has your new controls. Right click on the tool box and hit customize (I think) there should be a window w/ 2 tabs (.Net/COM) in the .Net tab hit browse, select your DLL file. Browse through the list for the namespace and name of your controls, check the check box in the list and hit OK.

-Rick

----------------------

[monkey] I believe in killer coding ninja monkeys.[monkey]
[banghead]
 
But the controls arent compiled into a dll file,

I dont understand why they arent, everything on the web i have seen says they should. I added the controls by just right clicking and "add user control"

i dont know if this matters but the code within the controls contain alot of references to forms and controls etc within the project

Im getting worried now because i managed to copy and paste one of the controls from an old backup of the solution, but when i try to rename it to match the name of the controls it deleted it says that the property is invalid because it is already used.

 
kill every file in the obj/debug and obj/release directory and make a new build. That's what I meant.

Hope this works out.
 
Are your user controls in a class library? or an application? If you have them in a seperate project from your application, make sure you have that project set to a Class Library (I think you can do that by right clicking on the project name in the solution explorer and opening the properties window).

-Rick

----------------------
[banghead]If you're about to post an ASP.Net question,
please don't do it in the VB.Net forum[banghead]

[monkey] I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top