Prod.: Engine, ver.: 6, ID: 60001233, HowTo : How can I disable the right-click context (popup) menu in the command line ?

HowTo : How can I disable the right-click context (popup) menu in the command line ?

Article60001233
TypeHowTo
ProductEngine
Version6
Date Added9/24/2010
Submitted byViktor Weber
Keywords

Subject

How can I disable the right-click context (popup) menu in the command line ?

Summary

How can I disable the popup menu (context menu) in the vdCommandLine ?

Solution

This menu is the default Microsoft's System.Windows.Forms.TextBox menu that is shown by default.

You can disable it by using a code like :
            commandLine.History.ContextMenu = new ContextMenu();
            commandLine.UserText.ContextMenu = new ContextMenu();
or
            vdFramedControl1.CommandLine.History.ContextMenu = new ContextMenu();
            vdFramedControl1.CommandLine.UserText.ContextMenu = new ContextMenu();
If you like, you can create your own context menu and show it with the right-click.