Bonjour,

J'aimerai s'avoir s'il est possible d'ajouter une image à coté d'un label ?
Ceci ne fonctionnant évidemment pas :
Code XML : Sélectionner tout - Visualiser dans une fenêtre à part
<labelControl id="OutlookExplorerCategoryColor" label="Couleur de la catégorie : " getImage="GetColorImage"/>
Code C# : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
public Bitmap GetColorImage(IRibbonControl control, int index)
        {
            if (colors == null) GetColors();
            Bitmap bmp = new Bitmap(15, 15);
            using (Graphics g = Graphics.FromImage(bmp))
            {
                g.FillRectangle(new SolidBrush(colors[index]), new Rectangle(0, 0, 15, 15));
            }
 
            return bmp;
        }