Hi Dears,
How Can you Create Unique Right Click Menu in ComboBox
Printable View
Hi Dears,
How Can you Create Unique Right Click Menu in ComboBox
Just a few thread below : http://www.vbforums.com/showthread.php?t=359025 :)
I always Search before i post ;)
and i had tried this post. But i Could not Show my menu
Edit: Check the last replay (it's mine) :P
Add the bold line in manavo11's code:
VB Code:
Select Case uMsg Case WM_CONTEXTMENU [b]Form1.PopupMenu Form1.mnuMyPopUpMenu[/b] 'assuming Form1 is the combobox's container and ' mnuMyPopUpMenu is your custom popupmenu Exit Function Case WM_DESTROY UnHook End Select
The value of WM_DESTROY is,
VB Code:
Private Const WM_DESTROY As Long = &H2
I was Tring to add
Form1.MyMenuNam - Without Form1.PopupMenu
...
Many Thanx