Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
GeneralControll Scrolling Programactically Pin
TaoLi3-Jun-04 16:36
TaoLi3-Jun-04 16:36 
GeneralRe: Controll Scrolling Programactically Pin
Heath Stewart3-Jun-04 17:51
protectorHeath Stewart3-Jun-04 17:51 
QuestionNotifyIcon app: how to show the context menu? Pin
wangdave3-Jun-04 15:56
wangdave3-Jun-04 15:56 
AnswerRe: NotifyIcon app: how to show the context menu? Pin
Heath Stewart3-Jun-04 17:46
protectorHeath Stewart3-Jun-04 17:46 
QuestionDrawing in different ways ??? Pin
sachinkalse3-Jun-04 15:21
sachinkalse3-Jun-04 15:21 
AnswerRe: Drawing in different ways ??? Pin
Heath Stewart3-Jun-04 17:39
protectorHeath Stewart3-Jun-04 17:39 
GeneralNice antialiased icons Pin
XanderSon3-Jun-04 14:38
XanderSon3-Jun-04 14:38 
GeneralRe: Nice antialiased icons Pin
Heath Stewart3-Jun-04 17:16
protectorHeath Stewart3-Jun-04 17:16 
You need a program that can do that. Typically, these icons are created in a decent graphics program like Adobe Photoshop using alpha channels (not just anti-aliasing, which requires a background color to blend with). You can then use a program to save the images (some can even read PSD files, but you typically save the images, or frames, in a format that supports alpha channels like PNG) as icons, like IconWorkshop, from Axialis[^], which I like and use.

Then, you simply use these in your .NET applications. You can, for instance, create an ImageList with 32-bit colors (to support the alpha channel). There is a problem, though: the ImageList contains a bug where the alpha channel is typically lost. You can help this by placing a .manifest file in the same directory as your executable (using the executable name + .manifest). This binds the GDI+ ImageList to Windows Common Controls 6, which features alpha channels. See my article, Windows XP Visual Styles for Windows Forms[^] for a brief overview of the .manifest file. Other articles here on CodeProject discuss other ways to get around this bug.

You can also load these images or icons yourself using other classes in the System.Drawing namepsace, such as the Bitmap class. Read the .NET Framework SDK documentation for more information.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Nice antialiased icons Pin
leppie4-Jun-04 7:20
leppie4-Jun-04 7:20 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 9:24
protectorHeath Stewart4-Jun-04 9:24 
GeneralRe: Nice antialiased icons Pin
leppie4-Jun-04 10:10
leppie4-Jun-04 10:10 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 10:12
protectorHeath Stewart4-Jun-04 10:12 
GeneralRe: Nice antialiased icons Pin
XanderSon4-Jun-04 12:57
XanderSon4-Jun-04 12:57 
GeneralRe: Nice antialiased icons Pin
Heath Stewart4-Jun-04 13:32
protectorHeath Stewart4-Jun-04 13:32 
GeneralEscape characters and regex Pin
cardboard423-Jun-04 14:34
cardboard423-Jun-04 14:34 
GeneralRe: Escape characters and regex Pin
Heath Stewart3-Jun-04 17:10
protectorHeath Stewart3-Jun-04 17:10 
GeneralRe: Escape characters and regex Pin
leppie4-Jun-04 10:44
leppie4-Jun-04 10:44 
GeneralGetting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
link_793-Jun-04 12:51
link_793-Jun-04 12:51 
GeneralRe: Getting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
Andrew McCarter3-Jun-04 13:29
Andrew McCarter3-Jun-04 13:29 
GeneralRe: Getting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
link_793-Jun-04 13:34
link_793-Jun-04 13:34 
GeneralRe: Getting a - "Cannot implicitly convert type 'int' to 'byte'" error - Help! Pin
leppie4-Jun-04 7:25
leppie4-Jun-04 7:25 
GeneralNew to Programming/C# Pin
tweakk3-Jun-04 11:22
tweakk3-Jun-04 11:22 
GeneralRe: New to Programming/C# Pin
palbano3-Jun-04 11:27
palbano3-Jun-04 11:27 
GeneralRe: New to Programming/C# Pin
Heath Stewart3-Jun-04 12:09
protectorHeath Stewart3-Jun-04 12:09 
GeneralRe: New to Programming/C# Pin
Wackatronic4-Jun-04 1:09
Wackatronic4-Jun-04 1:09 

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.