Here is a start it was done in sharp develop so it will need some tweaking to load it into VS. Also this code is very much proof of concept stuff.
anyhoo
clicking the first button will load all active processes into the listbox
selecting an item from the listbox and clicking the second button should show the icon on the form.