First off - please do NOT crosspost to a whole slew of newsgroups!
Post it to one, maybe two RELEVANT newsgroups ONLY. Thanks.
In Windows Application (C#), on RightMouse Button click in a Textbox, a
Popup menu with Cut / Copy / Paste is appearing. How to disable this
behaviour. I dont want to allow the user to copy and paste using the
rightmouse button.
You could always override the MouseDown event for that TextBox, and
just "swallow" the mouse event (not do anything with it) - that should
disable the system-default behaviour.
Select your textbox on the design surface, and select the "Events"
page in your property inspector. Find the "MouseDown" event,
double-click to create a stub event handler, and then write something
like:
private void textBox1_MouseDown(object sender,
System.Windows.Forms.MouseEventArgs e)
{
if(e.Button == MouseButtons.Right)
{
// do nothing
}
}
Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch