toolbox control icon

Discussion in 'ASP .Net Web Controls' started by Ladislav Kepl, Dec 2, 2003.

  1. 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, Dec 2, 2003
    #1
    1. Advertising

  2. 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.


    "Ladislav Kepl" <> wrote in message
    news:...
    > 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], Dec 2, 2003
    #2
    1. Advertising

  3. Thank you :))

    "Ken Cox [Microsoft MVP]" <> wrote in message
    news:...
    >

    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.
    >
    >
    > "Ladislav Kepl" <> wrote in message
    > news:...
    > > 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, Dec 3, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Miro Durcik

    app.rc resource's icon to .net Icon

    Miro Durcik, Oct 9, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    1,402
    Miro Durcik
    Oct 9, 2004
  2. Showjumper
    Replies:
    2
    Views:
    2,403
    Benjie Fallar
    Jul 18, 2003
  3. Showjumper
    Replies:
    2
    Views:
    2,370
    Showjumper
    Jul 22, 2003
  4. Dan Polansky
    Replies:
    3
    Views:
    816
    Larry Barowski
    Feb 12, 2007
  5. Shawn B.

    Toolbox icon

    Shawn B., Jul 30, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    172
    Teemu Keiski
    Jul 31, 2003
Loading...

Share This Page