Reputation: 32133
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
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