Home All Groups Group Topic Archive Search About
Author
27 Mar 2005 2:45 AM
patang
How do we disable/hide the shortcut menu (Undo, Cut, Copy, Past, Select All)
which pops up when a user right clicks on textbox control ?

Author
27 Mar 2005 10:16 AM
Herfried K. Wagner [MVP]
"patang" <pat***@discussions.microsoft.com> schrieb:
> How do we disable/hide the shortcut menu (Undo, Cut, Copy, Past, Select
> All)
> which pops up when a user right clicks on textbox control ?

Add a contextmenu component to the form (without items) and assign it to the
textbox' 'ContextMenu' property.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
27 Mar 2005 10:17 AM
OHM ( Terry Burns )
Dim dummy As New ContextMenu

TextBox1.ContextMenu = dummy

** Slick Huh **

OHM ( Terry Burns )

http://TrainingOn.net





Show quoteHide quote
"patang" <pat***@discussions.microsoft.com> wrote in message
news:8E1ABF61-71A4-4F61-BA38-F48EF10B09FF@microsoft.com...
> How do we disable/hide the shortcut menu (Undo, Cut, Copy, Past, Select
> All)
> which pops up when a user right clicks on textbox control ?
>