| Image combo in VB6 -
06-04-2007, 09:47 AM
Hello,
I have a small problem with the imagecombo control in vb 6.
I use a imagecombo locked (as a combobox with a picture).
If the user press the Enter key in the imagecombo, them the selected item is
set to nothing and the program can not see the seleced item. All my users
want to use the enter key to go to the next control instead of the tab key.
This problem only occur with the enter key (that trigger the change event
even if nothing is changed as the Imagecombo is locked)
The only thing I have seen is to code this event
Private Sub ImageCombo1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
KeyCode = 0
Command2.SetFocus
End If
End Sub
Is there another solution to this problem?
I use VB6 SP5 (as the listview move column bug is not corrected now)
Thank you
Marc Allard
Allcomp |