Prevent a Text Box's Default Right-Click Menu From Displaying
Category:
MiscellaneousType:
ModulesDifficulty:
IntermediateAuthor:
Intelligent Solutions Inc.Version Compatibility:
More information:
This demo contains a module that allows you to suppress the default context menu that is displayed when a VB text box is right clicked. It also includes a sample application that uses the module and substitutes a custom pop-up menu instead.
The example using sub-classing, so the standard warnings apply, such as don't stop the project using the stop button in the VB IDE, or VB will crash.
Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.
Download suppresscontextmenu.zip