不是
SendKeys="{F4}"
是这个
Private Sub Combo1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{F4}"
End If
End Sub
SendKeys="{F4}"
是这个
Private Sub Combo1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
SendKeys "{F4}"
End If
End Sub
SendMessage Combo1.hwnd,CB_SHOWDROPDOWN,False,Byval 0& '隐藏
Private Sub Form_KeyPress(KeyAscii As Integer)
if keyascii=13 then
combo1.setfocus
sendkeys "{F4}"
end if
end sub或者Private Sub Form_KeyPress(KeyAscii As Integer)
if keyascii=13 then
SendMessage Combo1.hwnd,CB_SHOWDROPDOWN,True,Byval 0& '显示
end if
end sub