Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

right click mouse down event for drop down box

Status
Not open for further replies.

obulldog27

Programmer
Apr 26, 2004
169
US
is it possible to do a right click mouse down event pop up window for a drop down box. There is no mouse down event option for this type of control.
 
I assume that you mean a combo box.
In a module
Code:
Option Explicit

Public Declare Function SendMessage Lib "user32" _
   Alias "SendMessageA" _
  (ByVal hwnd As Long, _
   ByVal wMsg As Long, _
   ByVal wParam As Long, _
   lParam As Any) As Long

Public Const CB_SHOWDROPDOWN = &H14F

And to cause the Combo Box to drop
Code:
SendMessage(Combo1.hwnd, CB_SHOWDROPDOWN, False, ByVal 0)

 
Golom,

I think what he wants is to right click on a selection in the drop down box, and have it do something different than if he left clicked.

Probably would take some sort of hook to do it, but I don't know it right off the top of my head.

Robert
 
yes I am trying to right click on a selection in a combo box and a delete pop up menu to come up so I can delete the selection.

thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top