Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   toolbox control icon (http://www.velocityreviews.com/forums/t771935-toolbox-control-icon.html)

Ladislav Kepl 12-02-2003 04:06 PM

toolbox control icon
 
Do somebody know how to change Toolbox Icon of Custom Control? These screws
and bolds are so simililar to each other :))
Thanks
LK



Ken Cox [Microsoft MVP] 12-02-2003 11:51 PM

Re: toolbox control icon
 
http://msdn.microsoft.com/library/de...ebcontrols.asp


To create a new icon

Select the CustomLabel project in Solution Explorer. On the Project menu,
click Add New Item.
The Add New Item dialog box appears.

Select Bitmap File in the Templates pane, change the Name to
WebCustomControl1.bmp, and click Open. The new bitmap file appears in
Solution Explorer and opens in the designer.
Note For this walkthrough, the name of the icon file name must match that
of the control class exactly (WebCustomControl1), including capitalization.
In the Properties window, change both the Height and Width properties of the
bitmap to 16. Icons must be 16 by 16 pixels in size.
Draw a distinctive design on the bitmap, using several colors, so you can
recognize the icon.
Save and close the bitmap file.
Select WebCustomControl1.bmp in Solution Explorer. In the Properties window,
change the Build Action property to Embedded Resource.
Select the CustomLabel project in Solution Explorer. On the Build menu,
click Rebuild CustomLabel.
Save all your work.
When you add the control to the Toolbox now, the icon you created will show
up next to the control name. When you consume the control on your Web Forms
page, the control's HTML tag will contain the identifying prefix that you
specified.


"Ladislav Kepl" <ladislav.kepl@volny.cz> wrote in message
news:OjvJP5OuDHA.2368@TK2MSFTNGP09.phx.gbl...
> Do somebody know how to change Toolbox Icon of Custom Control? These

screws
> and bolds are so simililar to each other :))
> Thanks
> LK
>
>




Ladislav Kepl 12-03-2003 07:53 PM

Re: toolbox control icon
 
Thank you :))

"Ken Cox [Microsoft MVP]" <BANSPAMken_cox@sympatico.ca> wrote in message
news:ekibZ8SuDHA.1196@TK2MSFTNGP12.phx.gbl...
>

http://msdn.microsoft.com/library/de...ebcontrols.asp
>
>
> To create a new icon
>
> Select the CustomLabel project in Solution Explorer. On the Project menu,
> click Add New Item.
> The Add New Item dialog box appears.
>
> Select Bitmap File in the Templates pane, change the Name to
> WebCustomControl1.bmp, and click Open. The new bitmap file appears in
> Solution Explorer and opens in the designer.
> Note For this walkthrough, the name of the icon file name must match

that
> of the control class exactly (WebCustomControl1), including

capitalization.
> In the Properties window, change both the Height and Width properties of

the
> bitmap to 16. Icons must be 16 by 16 pixels in size.
> Draw a distinctive design on the bitmap, using several colors, so you can
> recognize the icon.
> Save and close the bitmap file.
> Select WebCustomControl1.bmp in Solution Explorer. In the Properties

window,
> change the Build Action property to Embedded Resource.
> Select the CustomLabel project in Solution Explorer. On the Build menu,
> click Rebuild CustomLabel.
> Save all your work.
> When you add the control to the Toolbox now, the icon you created will

show
> up next to the control name. When you consume the control on your Web

Forms
> page, the control's HTML tag will contain the identifying prefix that you
> specified.
>
>
> "Ladislav Kepl" <ladislav.kepl@volny.cz> wrote in message
> news:OjvJP5OuDHA.2368@TK2MSFTNGP09.phx.gbl...
> > Do somebody know how to change Toolbox Icon of Custom Control? These

> screws
> > and bolds are so simililar to each other :))
> > Thanks
> > LK
> >
> >

>
>





All times are GMT. The time now is 08:30 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.