Click here to Skip to main content
Sign Up to vote bad
good
See more: C#WinForm
Use this combobox [^]
 
There is a line:
imagedComboBox1.Items.Add(new ComboBoxItem("Error", SystemIcons.Error.ToBitmap()));
 
Icon taken from the system. How to make that icon was taken from imageList1 ??
Posted 17 Nov '12 - 11:33


1 solution

Try:
int myIndex = 7; // whatever is your preferred Image index in the ImageList.
imagedComboBox1.Items.Add(new ComboBoxItem("Error", imageList1.Images[myIndex]));
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 425
1 OriginalGriff 315
2 Slacker007 240
3 Aarti Meswania 210
4 Maciej Los 200
0 Sergey Alexandrovich Kryukov 8,953
1 OriginalGriff 7,134
2 CPallini 3,758
3 Rohan Leuva 3,036
4 Maciej Los 2,488


Advertise | Privacy | Mobile
Web02 | 2.6.130516.1 | Last Updated 18 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid