Change the color of Combo Item font **RESOLVED**
Hello all
well, I have this in my prog:
VB Code:
Private Sub AddB_Click()
On Error Resume Next
If iBandas.ListIndex = 0 Then
Text1(0).Visible = True
Text1(0).Text = iBandas.Text
Else
Load Text1(iBandas.ListIndex)
Text1(iBandas.ListIndex).Text = iBandas.Text
Text1(iBandas.ListIndex).Visible = True
Text1(iBandas.ListIndex).Top = Text1(0).Top + iBandas.ListIndex * 375
End If
End Sub
Private Sub Form_Load()
Dim MyFile As String
Dim MyPath As String
MyPath = "C:\Bandas\"
MyFile = Dir(MyPath)
Do While MyFile <> ""
iBandas.AddItem MyFile
MyFile = Dir
Loop
End Sub
Private Sub RemB_Click()
On Error Resume Next
If iBandas.ListIndex = 0 Then
Text1(0).Visible = False
Text1(0).Text = ""
Else
Text1(iBandas.ListIndex).Text = ""
Unload Text1(iBandas.ListIndex)
End If
End Sub
so, when i click in Button AddB it loads on text box and the text in combo1...
well.. i need that if an Item have already been loaded, its name in Combo1 changes the font color, or something to know that that item have already been loaded...
understand??
thanks in advance