waelali
asked on
C# Assign bigger images (bigger than default 16x16 icons) in ContextMenuStrip
Hi
How to set bigger images instead of the default 16x16 iconsin ContextMenuStrip.
Attached is an image - and it will explain more. The icons that are circled with red color should be changed to 48x48 icons.
How can I do that ??
Wael
1.JPG
How to set bigger images instead of the default 16x16 iconsin ContextMenuStrip.
Attached is an image - and it will explain more. The icons that are circled with red color should be changed to 48x48 icons.
How can I do that ??
Wael
1.JPG
How are you referencing the images? Is there an ImageList?
ASKER
yes ofcourse. imagelist.
but could not resie the image susing that .
I have tried but could not see any effect-
but could not resie the image susing that .
I have tried but could not see any effect-
What is the ImageList.ImageSize set to? It should be 48 x 48, if you have images with that size.
ASKER
i have did that but nothing was changed
ASKER
I have done the following
ImageList myImages = new ImageList();
myImages.Images.Add(Image. FromFile(" ..\\..\\.. \\TabStrip App\\Resou rces\\Add. jpg"));
myImages.ImageSize.Height = 48;
myImages.ImageSize.Width = 48;
but I got a compilation error:
Error 1 Cannot modify the return value of 'System.Windows.Forms.Imag eList.Imag eSize' because it is not a variable
May you can help??
Wael
ImageList myImages = new ImageList();
myImages.Images.Add(Image.
myImages.ImageSize.Height = 48;
myImages.ImageSize.Width = 48;
but I got a compilation error:
Error 1 Cannot modify the return value of 'System.Windows.Forms.Imag
May you can help??
Wael
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.