Groups | Blog | Home
all groups > c# > february 2005 >

c# : Determine context menu event



Ryan Joseph So
2/22/2005 11:12:45 PM
When you right click your mouse on the textbox it will popup a
contextmenu then you can either cut, copy, paste. Is there a way to
determine what process did the user choose on the context menu? And is
it possible to override it meaning cancelling the process in the code.



*** Sent via Developersdex http://www.developersdex.com ***
mohamed.mossad NO[at]SPAM egdsc.microsoft.com
2/23/2005 4:00:20 PM
Hi
Try to create you own context menu with the same text fot items ( cut ,
copy . paste) then assign that menu as the context menu of your text box
control. need to assign proper shortcut keys too
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
AddThis Social Bookmark Button