Results 1 to 18 of 18

Thread: ComboBox not triggering Combo_Change Event? (Resolved)

Threaded View

  1. #1

    Thread Starter
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Resolved ComboBox not triggering Combo_Change Event? (Resolved)

    Ok, lets say I have a ComboBox with an item "hello" and the Text of the ComboBox is "hell"... When I click on the Button to drop down the list the Text automatically changes from "hell" to "hello" but the change event is NOT triggered..,

    Try it:


    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Combo1_Change()
    4.  Debug.Print "Text in Combo1_Change = """ & Combo1.Text & """"
    5. End Sub
    6.  
    7. Private Sub Combo1_Click()
    8.  Debug.Print "Text in Combo1_Click = """ & Combo1.Text & """"
    9. End Sub
    10.  
    11. Private Sub Combo1_DropDown()
    12.  Debug.Print "Text in Combo1_DropDown = """ & Combo1.Text & """"
    13. End Sub
    14.  
    15. Private Sub Combo1_GotFocus()
    16.  Debug.Print "Text in Combo1_GotFocus = """ & Combo1.Text & """"
    17. End Sub
    18.  
    19. Private Sub Combo1_Scroll()
    20.  Debug.Print "Text in Combo1_Scroll = """ & Combo1.Text & """"
    21. End Sub
    22.  
    23. Private Sub Combo1_Validate(Cancel As Boolean)
    24.  Debug.Print "Text in Combo1_Validate = """ & Combo1.Text & """"
    25. End Sub
    26.  
    27. Private Sub Form_Load()
    28.  With Combo1
    29.   .AddItem "hello"
    30.   .Text = "hell"
    31.  End With
    32. End Sub

    How can I know when the user clicks on the DropDown and changes the Text of the ComboBox?

    Thanks in advance!
    Last edited by Tec-Nico; Oct 3rd, 2004 at 01:49 PM.
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

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