Last post Dec 12, 2007 01:42 AM by Nai-Dong Jin - MSFT
Dec 10, 2007 07:02 PM|plshn99|LINK
I created a my web custom server control under my namespace.
The project builds but control does not show up on ToolBox.
But if I change "ColorPicker" to "ColorPalette", I could see it in ToolBox
What is behind this problem?
Dec 11, 2007 06:22 AM|sujitm|LINK
Did you try adding the control by right clicking on the Toolbox and then selecting 'Add Items"?
Dec 11, 2007 11:37 AM|plshn99|LINK
No, I didn't. The thing is when I changed the class name, it shows in ToolBox automatically. It's the new feature of VS 05, I think.
Dec 12, 2007 01:42 AM|Nai-Dong Jin - MSFT|LINK
From the description, I don’t think the cause of issue is the name of the custom server control class since I’ve tested that I can create a custom control with the name of “ColorPicker”.
There are 2 potential causes which I can see. First one is if you have created such controls like ”ColorPicker” before, and then the control hasn’t been removed successfully, which means some extra files has left. Since after you build your custom server
control, and make it be displayed in the toolbox, actually the control is added to the GAC. You can access the folder of GAC directly, (%Windows%Assembly/) to check if it exists there.
it shows in ToolBox automatically. It's the new feature of VS 05, I think.
Actually, you can control those custom controls if they can be added into toolbox automatically. In the Visual Studio, click the ‘Options’ choice in the ‘Tools’ menu, show all settings, and in the “Windows Form Designer” branch, you can see a property called
“AutoToolboxPopulate”, which can determine the controls if they can be displayed in toolbox automatically.