combobox下拉菜单的显示问题
Private Sub ComboBox2_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles ComboBox2.KeyPress
If e.KeyChar = ChrW(13) Then
ComboBox2.DroppedDown = True
End If
代码如上,但每次在combobox2上回车,下拉菜单总是一闪而过,不能停下来由用户用上下键选择,单独使用ComboBox2.DroppedDown = True则毫无问题,请问各位大哥如何解决?