PC Review


Reply
Thread Tools Rate Thread

Disable a Textbox default context menu

 
 
Roidy
Guest
Posts: n/a
 
      30th May 2010
How do I disable the default contextmenu on a Textbox? I want a user to be
able to right click a textbox and have an action happen but even if I set
the contextmenustrip property for the textbox to (none) I still get the
default copy/paste menu, how do I completely disable it.

Thanks
Robert


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      30th May 2010
Am 30.05.2010 21:44, schrieb Roidy:
> How do I disable the default contextmenu on a Textbox?


\\\
Me.TextBox1.ContextMenu = New ContextMenu()
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
 
Reply With Quote
 
Roidy
Guest
Posts: n/a
 
      30th May 2010
Excellent, Thanks very much.

Robert

"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Am 30.05.2010 21:44, schrieb Roidy:
>> How do I disable the default contextmenu on a Textbox?

>
> \\\
> Me.TextBox1.ContextMenu = New ContextMenu()
> ///
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TextBox default context menu jonpb Microsoft Dot NET Framework Forms 5 4th Dec 2009 02:36 PM
TextBox Context Menu =?Utf-8?B?Q3JvdWNoaWUxOTk4?= Microsoft VB .NET 0 20th Dec 2004 05:49 PM
TextBox Context Menu =?Utf-8?B?Q3JvdWNoaWUxOTk4?= Microsoft VB .NET 2 19th Dec 2004 04:36 PM
TextBox Context Menu =?Utf-8?B?Q3JvdWNoaWUxOTk4?= Microsoft VB .NET 0 17th Dec 2004 06:55 PM
Expand default context menu of a textbox Konrad Bernhard Microsoft Dot NET Framework Forms 0 9th Jan 2004 08:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:14 PM.