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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to capture click and double click events?

Thread ID:





6419 Aug 12,2003 01:22 PM UTC Aug 19,2003 02:51 PM UTC WinForms 1
Tags: EditControl
Dan Kari
Asked On August 12, 2003 01:22 PM UTC

Hi, How may you capture click and a double click events in the indicator margin (left margin), the line number margin, the user area and the user margin (right margin)? When the events occur I need to know: 1. The margin (indicator/line/textarea/user), 2. The line; and 3. The column where the event occured in order to add a bookmark/toggle a bookmark/custom indicator or perform some other processing. I've looked at the class reference events and none of the event handler prototypes seem to pass any margin/line/column information. Many thanks, Heinrich

Administrator [Syncfusion]
Replied On August 19, 2003 02:51 PM UTC

Hi Heinrich, All these are handled via the Mouse_Down event handler, although there are no discrepencies as to where the click was made. However, you could add your own logic to determine which area the user clicked in. To determine the line and character clicked, the edit control has the following method which returns an EditLocation: editControl1.GetLineChar(int X, int Y); Please let me know if this is the information you are looking for. Regards, Guru Patwal.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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

Live Chat Icon For mobile
Live Chat Icon