Je me demandais s'il était possible de créer une liste déroulante (liste déroulante) et de peindre des cellules spécifiques dans la liste déroulante. donc, si j'ai cinq éléments dans la liste déroulante, le deuxième élément et le dernier élément seront peints en bleu par exemple et les autres en gris .. est-ce possible?liste déroulante - liste déroulante
System.Windows.Forms.ComboBox comboBox;
comboBox = new System.Windows.Forms.ComboBox();
comboBox.AllowDrop = true;
comboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
comboBox.FormattingEnabled = true;
comboBox.Items.AddRange(excel.getPlanNames());
comboBox.Location = new System.Drawing.Point(x, y);
comboBox.Name = "comboBox1";
comboBox.Size = new System.Drawing.Size(sizeX, sizeY);
comboBox.TabIndex = 0;
group.Controls.Add(comboBox);
remercient pour toute aide ..
[Microsoft fournit un exemple dans l'aide MSDN] (http://msdn.microsoft.com/fr-fr/library/system.windows.forms.combobox.drawitem%28v=vs.110%29.aspx) –