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
and bolds are so simililar to each other
Thanks
LK
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.
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.