Solved

Disable windows cut/paste popup menu on object's right mouse click

Posted on 1997-08-06
1
151 Views
Last Modified: 2012-06-21
I want to disable the windows popup menu that appears when I
right click on an object (on MDI child form). When I right click on my object I want another form to appear, but the popup menu also appears.
0
Comment
Question by:englm
1 Comment
 
LVL 1

Accepted Solution

by:
olx earned 50 total points
ID: 1429859
presto!!

i did it with a textbox.  Create a menu (here mnuMymenu), hide it, create then a submenu (here mnuA), so when you right click on
the textbox (you can replace it with your child mdi form) the mnuMymenu appears and then you select this option (its caption could be: (Click here to do ...) and then the form2 appears.


Private Sub Text1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
 If Button = 2 Then
        Text1.Enabled = False
        PopupMenu mnuMymenu
        Text1.Enabled = True
     End If
End Sub

Private Sub mnua_Click()
   Form2.Visible = True
End Sub

please comment your results.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question