http://bugzilla.novell.com/show_bug.cgi?id=580339
http://bugzilla.novell.com/show_bug.cgi?id=580339#c0 Summary: Not possible to get ToolboxBitmap for any Control Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: x86 OS/Version: Windows XP Status: NEW Severity: Normal Priority: P5 - None Component: Windows.Forms AssignedTo: mono-bugs@lists.ximian.com ReportedBy: mo...@gmx.net QAContact: mono-bugs@lists.ximian.com Found By: --- Blocker: --- Created an attachment (id=342768) --> (http://bugzilla.novell.com/attachment.cgi?id=342768) test solution User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) It is not possible to get the ToolboxBitmap for any System.Windows.Forms control. I tried below methods, but neither of them returned the images. Using .NET, the images are returned. ToolboxItem item = new ToolboxItem(typeof(Button)); this.pictureBox1.Image = item.Bitmap; //An alternative method using System.ComponentModel ToolboxBitmapAttribute attr = TypeDescriptor.GetAttributes(typeof(Label))[typeof(ToolboxBitmapAttribute)] as ToolboxBitmapAttribute; this.pictureBox2.Image= attr.GetImage(typeof(Label)); Reproducible: Always Steps to Reproduce: 1. Open the attached solution. 2. Compile it and run it with .NET 3. Compile it and run it with Mono Actual Results: Both pictures (Button and Label) are shown using .NET. Both pictures are not shown using Mono. Expected Results: Both pictures (Button and Label) should be visible under Mono. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs