Wednesday, June 29, 2005 10:10 PM dbottjer

Custom Server Controls Toolbox Icon

On a recent project I was tasked with building a custom grid server control.  The grid made use AJAX (Client Side Java Script) to avoid post backs.  I wanted change the ugly default toolbox icon used in Visual Studio.  I thought it would make sense for my server control to use the same icon as the DataGrid since my control is a custom grid.  This will allow developers to easily recognize it.  I achieved my goal as follows:

<ToolboxData("<{0}:CustomGrid runat=server></{0}:CustomGrid>"), Designer(GetType(IDEInterface)), ToolboxBitmap(GetType(DataGrid))> _

Public Class CustomGrid

Filed under:

Comments

No Comments