How to disable the default ContextMenu of a TextBox?

 Posted by vishalneeraj-24503 on 12/15/2013 | Category: Windows Forms Interview questions | Views: 2330 | Points: 40
Answer:

By creating new object of ContextMenu class,we can disable ContextMenu of a TextBox.

txt_name.ContextMenu = new ContextMenu();


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response