curtis.dehaven
October 19th, 2006, 06:22 PM
So how do you create a custom control in Dev Studio 2005?
I created a new Windows Control Library. Once there, I added a new custom control - it's called UserControl1. I added a button, a text box, label, etc... Saved it, built it, release version...
I then went back to an existing Web Site project and went to "Tools | Choose Toolbox Items...". I browsed to the dll created by the Control Library project in the previous paragraph. Sure enough, UserControl1 appeared in the list of .NET Framework Componants and it was even checked! Man, I did something right...
But now, how do I pull that control onto a web page? I dont see it anywhere in my toolbox of controls. The MSoft docs say it puts it in the appropriate category or the General section, but I dont see it anywhere.
What am I missing? Any ideas?
Curt
I created a new Windows Control Library. Once there, I added a new custom control - it's called UserControl1. I added a button, a text box, label, etc... Saved it, built it, release version...
I then went back to an existing Web Site project and went to "Tools | Choose Toolbox Items...". I browsed to the dll created by the Control Library project in the previous paragraph. Sure enough, UserControl1 appeared in the list of .NET Framework Componants and it was even checked! Man, I did something right...
But now, how do I pull that control onto a web page? I dont see it anywhere in my toolbox of controls. The MSoft docs say it puts it in the appropriate category or the General section, but I dont see it anywhere.
What am I missing? Any ideas?
Curt