PC Review


Reply
Thread Tools Rate Thread

How to disable menuitem for textbox control built-in contextmenu.

 
 
=?Utf-8?B?UnVsaW4gSG9uZw==?=
Guest
Posts: n/a
 
      6th Aug 2004
Menu "Paste" in textbox control's built-in contextmenu will be automaticaly
enabled while having text in clipboard. I want to disable the menu when text
in clipboard didn't meet my format.

I knew how to filter paste message in WndProc. But I think disable menu is
more sense.

Thanks for any response.
 
Reply With Quote
 
 
 
 
Lee Moody
Guest
Posts: n/a
 
      6th Aug 2004
One way I can think of is to create your own ContextMenu
for your textboxes then you can modify it at will.

-Lee

>-----Original Message-----
>Menu "Paste" in textbox control's built-in contextmenu

will be automaticaly
>enabled while having text in clipboard. I want to disable

the menu when text
>in clipboard didn't meet my format.
>
>I knew how to filter paste message in WndProc. But I

think disable menu is
>more sense.
>
>Thanks for any response.
>.
>

 
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
Adding a contextMenu to a menuitem xlar54 Microsoft C# .NET 1 11th Feb 2007 05:21 PM
How to add menuitem to default TextBox ContextMenu =?Utf-8?B?YXNpdmE=?= Microsoft Dot NET Framework Forms 1 25th Aug 2006 09:33 AM
Disable control's paste contextmenu Ryan Joseph So Microsoft C# .NET 2 11th Feb 2005 07:53 AM
Can anybody tell me how to access menuitem's name property of a a contextmenu? Peter Microsoft VB .NET 2 15th Jun 2004 09:16 AM
ContextMenu - default MenuItem highlight Neville Lang Microsoft Dot NET Compact Framework 0 15th May 2004 03:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:46 AM.