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.

EditControl :: Inheritance

Thread ID:





16128 Jul 6,2004 01:04 PM Jul 9,2004 09:04 PM Windows Forms 2
Tags: EditControl
Alex Nesterov
Asked On July 6, 2004 01:04 PM

Hi! I have inherited the editControl class. And in my new class I am trying to override the OnContextToolTipPopup method: protected override void OnContextTooltipPopup(ContextTooltipPopupEventArgs e) {// som code} But this doesn''t work. It means that the debugger doesn''t step into this method and the event ContextToolTipPopup is never raised. It is interesting that when I override OnClick it workd very well. What is the problem?

Administrator [Syncfusion]
Replied On July 9, 2004 02:16 PM

Hi eisernWolf Here is a sample in which MyEditControl is a derived Edit control. The OnContextToolTipPopup is overriden in this derived control. If you move your mouse over using System.Windows.Forms , the overriden ContextToolTipPopup event is raised and a MessageBox is displayed. Regards Arun

Administrator [Syncfusion]
Replied On July 9, 2004 09:04 PM

Hi, Arun! Thank you very much for you sample. Ive noticed you had called base constructor. Maybe thats why everything is OK - I havent learnt the code yet, just took a glance... With Kind Regards, eisernWolf


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.