|
-
Jan 7th, 2006, 06:04 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Unique Right Click Menu With ComboBox
Hi Dears,
How Can you Create Unique Right Click Menu in ComboBox
-
Jan 7th, 2006, 06:40 PM
#2
Re: Unique Right Click Menu With ComboBox
-
Jan 7th, 2006, 07:17 PM
#3
Thread Starter
Addicted Member
Re: Unique Right Click Menu With ComboBox
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
-
Jan 7th, 2006, 07:46 PM
#4
Re: Unique Right Click Menu With ComboBox
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
-
Jan 7th, 2006, 08:31 PM
#5
Thread Starter
Addicted Member
Re: Unique Right Click Menu With ComboBox
I was Tring to add
Form1.MyMenuNam - Without Form1.PopupMenu
...
Many Thanx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|