Here is an image to clarify the situation:

If I click in the column "Description", the combo box remains as it is in the column "Part No.". I have also tried SendMessage cbo.hwnd, CB_SHOWDROPDOWN, 0, 0& in the grid's Click event for when the second column is clicked but it does not work neither.
I need to know how to make the list retract when I click anywhere else in the grid, without any selection made in the combo box. Thanks in advance.
[SendMessage is declared in the General section of the form, as follows:
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Private Const CB_SHOWDROPDOWN = &H14F]
This post has been edited by AN1554: 19 November 2011 - 01:56 PM

New Topic/Question
Reply



MultiQuote





|