0

Here my code to display the menu:

Private Sub Text5_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 Then
PopupMenu t5menu
End If
End Sub

But my problem is the default popup menus such as undo, copy, cut etc. keeps in taking place instead of the menus i set up..
Help me pls..

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by xirosen
0

Not a simple solution as you have to subclass the textbox. Please see this example...

http://vbnet.mvps.org/index.html?code/subclass/contextmenu.htm

or this that says you don't need to subclass...

http://www.devx.com/vb2themax/Tip/18376

this one uses subclassing in conjunction with a dll...

http://www.devx.com/vb2themax/Tip/18413

and not so sure about this one as it uses a timer and the OP says you cannot completly disable the popup...

http://www.a1vbcode.com/snippet-4474.asp

as this one tries to also get around it without using subclassing or the API...

http://www.a1vbcode.com/snippet-3848.asp

while this one does subclass but has a project you can download...

http://www.thescarms.com/VBasic/SubClassCtrls.aspx

same here...

http://www.vb-helper.com/howto_remove_context_menu.html

and this is the search I used to find these examples...

http://search.yahoo.com/search?p=vb6+popup+menu+textbox&toggle=1&cop=mss&ei=UTF-8&fr=yfp-t-701

Good Luck

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.