Results 1 to 11 of 11

Thread: Change the color of Combo Item font **RESOLVED**

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Daskalos's Avatar
    Join Date
    Jun 2002
    Location
    Just behind YOU...
    Posts
    364

    Thumbs up Change the color of Combo Item font **RESOLVED**

    Hello all
    well, I have this in my prog:
    VB Code:
    1. Private Sub AddB_Click()
    2. On Error Resume Next
    3. If iBandas.ListIndex = 0 Then
    4. Text1(0).Visible = True
    5. Text1(0).Text = iBandas.Text
    6. Else
    7. Load Text1(iBandas.ListIndex)
    8. Text1(iBandas.ListIndex).Text = iBandas.Text
    9. Text1(iBandas.ListIndex).Visible = True
    10. Text1(iBandas.ListIndex).Top = Text1(0).Top + iBandas.ListIndex * 375
    11. End If
    12. End Sub
    13.  
    14. Private Sub Form_Load()
    15. Dim MyFile As String
    16. Dim MyPath  As String
    17. MyPath = "C:\Bandas\"
    18.  
    19. MyFile = Dir(MyPath)
    20.  
    21. Do While MyFile <> ""
    22. iBandas.AddItem MyFile
    23. MyFile = Dir
    24. Loop
    25. End Sub
    26.  
    27. Private Sub RemB_Click()
    28. On Error Resume Next
    29. If iBandas.ListIndex = 0 Then
    30. Text1(0).Visible = False
    31. Text1(0).Text = ""
    32. Else
    33. Text1(iBandas.ListIndex).Text = ""
    34. Unload Text1(iBandas.ListIndex)
    35. End If
    36. 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
    Last edited by Daskalos; Dec 6th, 2003 at 06:21 PM.
    [vbcode]Dim Daskalos As NewBie
    If My.english = Wrong Then
    Forgive My.Poor.English
    End If[/vbcode]
    Ða§kalø§
    ICQ#: 36146307
    Current ICQ status:
    More ways to contact me

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width