Go Back   Forum Care Forums > Development Reference Area > Visual Basic

Reply
 
LinkBack Thread Tools Display Modes
Image combo in VB6
Old
  (#1)
Allcomp
Guest
 
Posts: n/a
Default 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


   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top