Forum  Commercial Foru...  Commercial Foru...  Toolbox icon for custom control
Previous Previous
 
Next Next
New Post 5/9/2012 1:39 AM
  Valter.Venturini
138 posts
5th Level Poster


Toolbox icon for custom control 

 Hi,

I have created some custom controls and I want to customize the icon that appears in the toolbox.
I have write this lines of code

[Skin(typeof(ItsTextDataSkin))]
[ToolboxBitmapAttribute(typeof(ItsTextData), "Its.Framework.Web.Pres_ControlliEdit.ItsTextData.bmp")]  
[System.ComponentModel.ToolboxItem(true)]
[Serializable()]
[ToolboxItemCategory("Italstudio.Web")]

And in my project I have a ItsTextData.bmp image with Build Action set to EmbeddedResource (also tried with Content). My Control is ItsTextData and its skin is ItsTextDataSkin.

When I add it to a toolbox my control appears with the gear icon not with my new custom icon.
Can someone tell me if the previous steps are correct and if someone has already done this.

Thanks,

Daniele 
 


R&D Team - Italstudio
 
New Post 5/9/2012 6:55 AM
  Valter.Venturini
138 posts
5th Level Poster


Re: Toolbox icon for custom control 

 Solved!

My control was in a different namespace.

The attributes are correct!


R&D Team - Italstudio
 
New Post 5/9/2012 12:51 PM
  palli
14415 posts
1st Level Poster




Re: Toolbox icon for custom control 

 Hi Daniele,

Glad you got this sorted out and thanks for the update.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Commercial Foru...  Commercial Foru...  Toolbox icon for custom control
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS