Freesnöw
Freesnöw

Reputation: 32133

Getting the icon representing a process with VB.net

I'm making a taskbar for something (I'll be creating similar to the windows taskbar).

I've managed to get all process objects that would be in the taskbar, how can I get the icon too?

Thanks if you can help! I'm using VB.net so all .net answers are great!

Upvotes: 2

Views: 2097

Answers (1)

GregL
GregL

Reputation: 38103

Does the technique in this answer help?

The VB equivalent would be:

Dim ico As Icon = Icon.ExtractAssociatedIcon(theProcess.MainModule.FileName)

Upvotes: 3

Related Questions