How to extract icon from given process name ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SteveIT3
    New Member
    • Jan 2016
    • 7

    How to extract icon from given process name ?

    I'm trying to extract an icon from the process by finding it with the name of the process.

    Here is what I have so far.
    I.E - ListBox1.Select edItem.Tostring = "chrome"

    Code:
     ico2 = Icon.ExtractAssociatedIcon(System.Diagnostics.Process.GetProcessesByName(ListBox1.SelectedItem.ToString).ToString)
Working...