32-bit icons in tree view/toolbar |
Post Reply |
Author | |
Unormal
Newbie Joined: 12 November 2003 Location: United States Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 31 December 2003 at 1:36pm |
Anyone know of a good way to get 32 bit icons/bitmaps in toolbars / treeviews? Thanks! |
|
caiden1347
Newbie Joined: 28 January 2004 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
|
Was having a similar problem... Try this solution (WinXP only using Studio.NET 2003): 1) Add '.manifest' file to application (see http://www.dotnet247.com/247reference/msgs/11/59317.aspx). This enables WinXP styles in the app. 2) Add an empty ImageList to your form, to be used with your toolbar. Add icons to your ImageList and assign these to your toolbar. The icons will not appear correctly (8 bit alpha will show as 1 bit blackness). This is just so you can preview the icons in the designer. 3) In your code, do the following: imageList.Images.Clear(); Icon icon = new Icon(fileName); imageList.Images.Add(icon); // For each icon you are using
Hope this helps... -Matt |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |