Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2007, 12:13 AM
Friend of Wrox
 
Join Date: Dec 2006
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Default choose Icon for wndows controls library

hi
i created custom windows control library
how can i set the my favorite icon for it ?
regards
 
Old June 19th, 2007, 05:02 AM
Authorized User
 
Join Date: Jun 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Dear angelboy

You should set 'ToolboxBitmapAttribute' attribute on your control class like below :

[ToolboxBitmapAttribute(typeof(UserControl1), "images.myicon.ico")]

Another method is to place your desired icon (16 * 16) with exact name of your control in same project folder that your control exists.

Also I suggest you to take a look at this MSDN article

http://msdn.microsoft.com/msdnmag/is...-TimeControls/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested Choose Ryan Moore XSLT 6 November 9th, 2007 03:24 PM
Choose all by date? morpheus SQL Server ASP 3 July 30th, 2005 11:50 PM
xsl:choose djmarquette XSLT 5 March 29th, 2005 11:44 AM
"choose, when, otherwise" - problem natjimy XSLT 8 December 17th, 2004 02:22 PM
Controls New Class Library project page 60??? Ghistos BOOK: ASP.NET Website Programming Problem-Design-Solution 5 July 27th, 2004 10:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.