Keypress and ComboBox

  • Thread starter Thread starter Lee Moody
  • Start date Start date
L

Lee Moody

Have you noticed that if you set the "KeyPreview" to true
on a form and you press the ESCape key in a ComboBox that
the KeyPress event of the form doesn't fire? It fires for
a TextBox control but not for the ComboBox.

Is this by design?

-Lee
 
* "Lee Moody said:
Have you noticed that if you set the "KeyPreview" to true
on a form and you press the ESCape key in a ComboBox that
the KeyPress event of the form doesn't fire? It fires for
a TextBox control but not for the ComboBox.

Is this by design?

This is a "known" bug.
 
Hello,

try this

Private Sub Cmbpaidto_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
txtPVDescription.SetFocus
End If
End Sub


Thanks,

Warm Regards,

Ayaz Ahmed
Software Engineer & Web Developer
Creative Chaos (Pvt.) Ltd.
"Managing Your Digital Risk"
http://www.csquareonline.com
Karachi, Pakistan
Mobile +92 300 2280950
Office +92 21 455 2414
 
Back
Top