How do I tell which image the user has selected in an imagecombo control in which there are just images (no text)
VB Code:
Option Explicit Private Sub Form_Load() Dim sColourArray(9) As String, i As Integer sColourArray(0) = vbBlue sColourArray(1) = vbRed sColourArray(2) = vbGreen sColourArray(3) = vbYellow sColourArray(4) = vbBlack sColourArray(5) = vbWhite sColourArray(6) = vbCyan sColourArray(7) = vbMagenta sColourArray(8) = vbButtonFace sColourArray(8) = vbHighlight sColourArray(9) = vbInfoBackground For i = 0 To 9 picPicBox.BackColor = sColourArray(i) ilsImageList.ListImages.Add , , picPicBox.Image icmbColourCombo.ComboItems.Add , , , i + 1 Next End Sub Private Sub icmbColourCombo_Click() 'What goes here ? End Sub




Reply With Quote