We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GroupView crash with Icon 32x32

Thread ID:

Created:

Updated:

Platform:

Replies:

33759 Aug 25,2005 02:13 PM UTC Aug 30,2005 09:49 AM UTC Windows Forms 5
loading
Tags: Tools
Miguel Garvie
Asked On August 25, 2005 02:13 PM UTC

When trying to add an item to a GroupView control using an Icon from the large image list from an icon format (.ico) file of 32x32 of either 4 or 8 bits I get an exception on the screen "Invalid parameter used" and then inside the GroupView control is painted: " System.ArgumentException: Invalid parameter used. at System.Drawing.Bitmap.LockBits( Rectangle rect, ImageLockMode flags, PixelFormat format) at System.Windows.Forms.ControlPaint.CreateHBitmapTransparencyMask.... " I am using Syncfusion 3.2.1.0 Any ideas? Cheers, Miguel

Miguel Garvie
Replied On August 25, 2005 02:20 PM UTC

Just to add that when the same icon files are used as small images they are shrunk and displayed correctly. Also, bitmap (.bmp) files work fine as 32x32 images.

Mano J [Syncfusion]
Replied On August 26, 2005 04:23 AM UTC

Hi Miguel, I have tested for this issue. The Icons associated with the GroupView Items seem to be working fine. Please take a look at the sample attached and let me know whether I have understood your problems correctly. If you still experience the same problem, please kindly modify the sample to show the issue. Thanks for your interest in Syncfusion products. Regards, Mano J

Miguel Garvie
Replied On August 26, 2005 08:56 AM UTC

Thanks for your quick response Mano, However I''m using Visual Studio 2002 and can''t open the project you attached.

Mano J [Syncfusion]
Replied On August 26, 2005 12:14 PM UTC

Hi Miguel, Sorry for the inconvenience. I have attached a modified sample. Please refer to it and let me know if you have any questions. Thanks for your cooperation. Regards, Mano

Miguel Garvie
Replied On August 30, 2005 09:49 AM UTC

Hi Mano, As I mentioned earlier, it works fine with bitmaps but doesn''t with icons. It works with the 16x16 icons and stretches it to 32x32 but doesn''t work with native 32x32 icon. I''ve worked around this by loading the icon files and then converting them to bitmaps, so from now on this issue is more for anyone else who may have the same problem. Cheers, Miguel

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;