VB Code:
  1. Me.Icon = System.Drawing.Icon.FromHandle(CType(ImageList1.Images(x), System.Drawing.Bitmap).GetHicon())