2

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!

Freesnöw
  • 30,619
  • 30
  • 89
  • 138

1 Answers1

3

Does the technique in this answer help?

The VB equivalent would be:

Dim ico As Icon = Icon.ExtractAssociatedIcon(theProcess.MainModule.FileName)
Community
  • 1
  • 1
GregL
  • 37,147
  • 8
  • 62
  • 67