Solved

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

Posted on 1997-08-06
1
152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best way to parse out a json string in VB6? 10 388
Access 2013 combo box not working 3 74
Problem to With line 4 86
Win 10 Automation Error with .doCmd in Access 2 89
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

732 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