Click here to Skip to main content
16,013,581 members
Home / Discussions / C#
   

C#

 
GeneralRe: Is Windows server needed Pin
Heath Stewart24-May-04 3:35
protectorHeath Stewart24-May-04 3:35 
GeneralRe: Is Windows server needed Pin
Dave Kreskowiak23-May-04 16:30
mveDave Kreskowiak23-May-04 16:30 
GeneralRe: Is Windows server needed Pin
vjeko24-May-04 6:15
vjeko24-May-04 6:15 
GeneralRe: Is Windows server needed Pin
Serge Lobko-Lobanovsky26-May-04 3:52
Serge Lobko-Lobanovsky26-May-04 3:52 
GeneralAlpha & Imagelists Pin
BaShOr23-May-04 0:31
BaShOr23-May-04 0:31 
GeneralRe: Alpha & Imagelists Pin
Colin Angus Mackay23-May-04 1:25
Colin Angus Mackay23-May-04 1:25 
GeneralRe: Alpha & Imagelists Pin
leppie23-May-04 2:12
leppie23-May-04 2:12 
GeneralRe: Alpha & Imagelists Pin
Heath Stewart23-May-04 4:45
protectorHeath Stewart23-May-04 4:45 
The ImageList in Common Controls 6.0 (Windows XP and newer) supports alpha channels in the ImageList. In order to support the alpha channel, CC 6.0 must be present (which means it won't work on earlier platforms) and you must include an application manifest that redirects the common control bindings to 6.0 (the ImageList class in .NET encapsulates the ImageList common control; this is true of most controls and many other classes in the .NET FCL).

See my article, Windows XP Visual Styles for Windows Forms[^] for an example of the manifest you should include (you can include it as a separate file called MyApp.exe.manifest, though).

Otherwise, you'll have to draw the images yourself like leppie mentioned. If you store the images in a ImageList, the alpha channel, IIRC, is lost (it's screwed-up when it goes into the image list). I could be mistaken. This is a known problem and you could google for the problem, i.e. when the alpha channel is actually lost: before insertion into the ImageList or when drawn by the ImageList.

If I'm right, you'll need to just use a collection to store your image and draw them yourself. It's not hard, though. The Graphics class has an overloaded DrawImage method you can use.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Alpha & Imagelists Pin
BaShOr23-May-04 5:05
BaShOr23-May-04 5:05 
GeneralRe: Alpha & Imagelists Pin
Heath Stewart23-May-04 5:20
protectorHeath Stewart23-May-04 5:20 
GeneralRe: Alpha & Imagelists Pin
BaShOr23-May-04 5:32
BaShOr23-May-04 5:32 
GeneralRe: Alpha & Imagelists Pin
Heath Stewart23-May-04 5:44
protectorHeath Stewart23-May-04 5:44 
GeneralRe: Alpha & Imagelists Pin
BaShOr23-May-04 5:58
BaShOr23-May-04 5:58 
GeneralRe: Alpha & Imagelists Pin
leppie23-May-04 7:00
leppie23-May-04 7:00 
GeneralRe: Alpha & Imagelists Pin
BaShOr23-May-04 8:29
BaShOr23-May-04 8:29 
GeneralRe: Alpha & Imagelists Pin
leppie23-May-04 10:49
leppie23-May-04 10:49 
GeneralCompound file in C# Pin
ilmian22-May-04 21:25
ilmian22-May-04 21:25 
GeneralRe: Compound file in C# Pin
bjoernen22-May-04 22:23
bjoernen22-May-04 22:23 
GeneralRe: Compound file in C# Pin
Colin Angus Mackay23-May-04 1:39
Colin Angus Mackay23-May-04 1:39 
GeneralRe: Compound file in C# Pin
Heath Stewart23-May-04 4:36
protectorHeath Stewart23-May-04 4:36 
GeneralRe: Compound file in C# Pin
Heath Stewart23-May-04 4:28
protectorHeath Stewart23-May-04 4:28 
GeneralRe: Compound file in C# Pin
Heath Stewart23-May-04 4:33
protectorHeath Stewart23-May-04 4:33 
GeneralRe: Compound file in C# Pin
Anonymous23-May-04 23:55
Anonymous23-May-04 23:55 
GeneralRe: Compound file in C# Pin
Heath Stewart24-May-04 3:27
protectorHeath Stewart24-May-04 3:27 
GeneralRe: Compound file in C# Pin
ilmian24-May-04 20:07
ilmian24-May-04 20:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.