Create handle.
authorKornél Pál <kornelpal@gmail.com>
Fri, 30 Sep 2005 14:42:57 +0000 (14:42 -0000)
committerKornél Pál <kornelpal@gmail.com>
Fri, 30 Sep 2005 14:42:57 +0000 (14:42 -0000)
svn path=/trunk/mcs/; revision=51045

mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageList.cs

index b79477427075bda9940fb551860c495182398788..cc7f7bda6a77ffb1b56e8c23dc1ed6d60b2a3ba6 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
+
+       * ImageList.cs: Add(Icon): Create handle.
+
 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
 
        * ListView.cs:
index 6e88ac8bec3e3c03359448dd413ae07763a4a9df..31ba808586fedcb3e2c84c809cf9b5387e2cc78b 100644 (file)
@@ -445,6 +445,8 @@ namespace System.Windows.Forms
                                if (value == null)
                                        throw new ArgumentNullException("value");
 
+                               this.handleCreated = true;
+
                                bitmap = new Bitmap(width = this.imageSize.Width, height = this.imageSize.Height, PixelFormat.Format32bppArgb);
                                graphics = Graphics.FromImage(bitmap);
                                graphics.DrawIcon(value, new Rectangle(0, 0, width, height));