Solved

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

Posted on 1997-08-06
1
149 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

896 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now