We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

CurrencyTextBox

Thread ID:

Created:

Updated:

Platform:

Replies:

16406 Jul 14,2004 01:28 PM Aug 10,2004 06:44 AM Windows Forms 7
loading
Tags: Tools
Philip Bishop
Asked On July 14, 2004 01:28 PM

Is there a way I can disable the right click context menu on the currencytextbox control???

Administrator [Syncfusion]
Replied On July 15, 2004 06:42 AM

Hi Philip, A simple workaround here would be assign an empty PopupMenu to the CurrencyTextBox as illustrated in the sample_attached. Let me know if this works for you. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On July 15, 2004 06:49 AM

any chance i can get this in visual basic. i forgot to mention that

Administrator [Syncfusion]
Replied On July 15, 2004 06:52 AM

one other thing. we dont have the syncfusion tools reference. all we use is the grid and ur textbox which is in the shared

Administrator [Syncfusion]
Replied On July 15, 2004 07:13 AM

Hi Phil, Thanks for the update. If you do not have our Tools, then you could use the .Net ContextMenu or this purpose. I have modified my earlier sample accordingly and have attached_it_here. Also this sample is in VB.Net. Let me know if you need further assistance. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On July 16, 2004 09:13 AM

Hi Phil, Adding the following line of code in your Form''s constructor should take care of this: Me.currencyTextBox1.ContextMenu = New ContextMenu() Regards Arun

Adeel Riaz Qureshi
Replied On August 9, 2004 08:04 PM

Hi Arun Srinivasan, Your solution works fine for the normal right click in the textbox, but if u right click in the textbox and release the button while dragging the mouse out of the textbox, the default contextmenu still pops up. Any suggestions to solve this issue would be highly appreciated. Regards, A.R. Qureshi >Hi Phil, > >Adding the following line of code in your Form''s constructor should take care of this: > >Me.currencyTextBox1.ContextMenu = New ContextMenu() > >Regards >Arun

Administrator [Syncfusion]
Replied On August 10, 2004 06:44 AM

Hi Adeel, Please set the CurrencyTextBox''s ContextMenu property to null for this purpose. Me.currencyTextBox1.ContextMenu = Nothing Let me know if you need any other information. Thanks for choosing Syncfusion. Regards, Guru Patwal Syncfusion, Inc.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;