public IntPtr GetHicon() { IntPtr HandleIcon; Status status = GDIPlus.GdipCreateHICONFromBitmap(nativeObject, out HandleIcon); GDIPlus.CheckStatus(status); return(HandleIcon); }