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.
Syncfusion Feedback

CurrencyTextBox

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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

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

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 10:49 AM UTC

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

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

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 11:13 AM UTC

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 01:13 PM UTC

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 10, 2004 12:04 AM UTC

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 10:44 AM UTC

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.

Warning Icon 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.Close Icon

;