I want to detect if combobox has been changed. I use first command button to set a handle for this combobox, then I hope if I changed the combobox, when I click second command, it will detect. But it does not work, can someone help???

Private Sub Command1_Click()

hEdit = FindWindowEx(Combo1.hwnd, 0 , "Edit", vbNullString)
End Sub

Private Sub Command2_Click()

If SendMessage(hEdit, EM_GETMODIFY, True, True) Then
MsgBox "changed"
End If
End Sub