Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to disable right click on controls

Status
Not open for further replies.

iannuzzelli

Programmer
Jan 4, 2003
36
US
I wish to turn off the ability to show the menu when a right click is issued.

Why does .net default to allow an end user to arrange the text in a simple textbox?

Thanks
 
I can't find the code I tested but I think I set ReadOnly = True in MouseDown with Right-button and set Readonly = False in MouseUp. Menu still pops but no CUT or PASTE can happen. Copy still allowed. Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Thanks,
My concern is not so much with the cut and paste. it is with the fact that an end user can choose other options such as Right to left reading order, show unicode control characters, and set unicode control characters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top