RSS

How to disable the default Context Menu devexpress

27 May

If you want to Hide context menu on specific TextBoxt (Devexpress) Control then use this following Code,Write this code on Form Load Event

C#: 

ContextMenu emptyMenu = new ContextMenu();

this.components.Add(emptyMenu);

txtBardcode.Properties.ContextMenu = emptyMenu;

 VB.Net

 
Dim emptyMenu As New ContextMenu()

Me.components.Add(emptyMenu)

txtBardcode.Properties.ContextMenu = emptyMenu

 

 

 

ContextMenu

Advertisements
 
Leave a comment

Posted by on May 27, 2014 in WinForm

 

Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: