private void createIcon()
{
if (this.hIcon != IntPtr.Zero)
{
DestroyIcon(this.hIcon);
this.hIcon = IntPtr.Zero;
}
ICONINFO piconInfo = new ICONINFO();
piconInfo.fIcon = 1;
this.getIconBitmap(false, true, ref piconInfo.hBmColor);
this.getIconBitmap(true, true, ref piconInfo.hBmMask);
this.hIcon = CreateIconIndirect(ref piconInfo);
DeleteObject(piconInfo.hBmColor);
DeleteObject(piconInfo.hBmMask);
}