toolbox control icon

L

Ladislav Kepl

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

Ken Cox [Microsoft MVP]

http://msdn.microsoft.com/library/d...vbwlkwalkthroughcreatingcustomwebcontrols.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.
 
L

Ladislav Kepl

Thank you :))

Ken Cox said:
http://msdn.microsoft.com/library/d...vbwlkwalkthroughcreatingcustomwebcontrols.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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top