Solved

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

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

762 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

24 Experts available now in Live!

Get 1:1 Help Now