PC Review


Reply
Thread Tools Rate Thread

Disable control's paste contextmenu

 
 
Ryan Joseph So
Guest
Posts: n/a
 
      10th Feb 2005
Is it possible to disable the paste contextmenu of a control without
creating a new contextmenu to handle this, so i wont be able use to
paste on that control.

Ryan.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
Paul E Collins
Guest
Posts: n/a
 
      10th Feb 2005
"Ryan Joseph So" <(E-Mail Removed)> wrote:

> Is it possible to disable the paste contextmenu of
> a control without creating a new contextmenu to
> handle this


If you write ...
myTextBox.ContextMenu = new ContextMenu();
.... the "new menu" will never appear because it has no commands on it.

You'll also want to handle the Ctrl+V keystroke, because that pastes
too.

P.


 
Reply With Quote
 
Ryan Joseph So
Guest
Posts: n/a
 
      11th Feb 2005
I actually done this but there's still a line showing up when i right
click my mouse. Is there no other way to disable the paste menu so i
wont be able to click on it?
Ctrl+v can be handled easily, my problem now it just the right click.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
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
Contextmenu paste properties Alistair George Microsoft C# .NET 2 6th Oct 2007 07:21 AM
how to disable webbrowser's progressbar/ contextmenu ?? flik Microsoft Dot NET Compact Framework 0 12th May 2007 09:48 PM
Display contextmenu and then paste information into a text box. Paul Bromley Microsoft VB .NET 2 3rd Nov 2005 07:07 PM
Disable AxWebBrowser ContextMenu? =?Utf-8?B?QWxleGFuZGVyIFdlaHJsaQ==?= Microsoft C# .NET 2 17th Aug 2004 11:55 AM
How to disable menuitem for textbox control built-in contextmenu. =?Utf-8?B?UnVsaW4gSG9uZw==?= Microsoft VB .NET 1 6th Aug 2004 03:35 PM


Features
 

Advertising
 

Newsgroups
 


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