Put an imagelistcontrol and a picturebox into your form. Size it 32*32 and load a picture (32*32) into it use this code:

Code:
Icon = Imagelist1.ListImages.Add(, , Picture1.picture).ExtractIcon
Imagelist1.clear