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

prevent double click on bitmap node

Thread ID:





149294 Nov 20,2019 09:42 PM UTC Nov 22,2019 03:55 AM UTC WinForms 3
Tags: Diagram
Asked On November 20, 2019 09:42 PM UTC

I am using diagram and I add many type of nodes
When I double click on a node, an inline text editor appears (see attached)
I would like to not show this editor in case of a bitmap node


Attachment: InlineEditing_7a8b9f54.7z

Shyam G [Syncfusion]
Replied On November 21, 2019 12:15 PM UTC

Hi George, 
To disable the inline text editor, please set inPlaceEditing as false in NodeMouseEnter event to achieve your requirement. Please refer to a code example and sample below. 
Code example: 
public Form1() 
             //define event 
            this.diagram1.EventSink.NodeMouseEnter += EventSink_NodeMouseEnter; 
            this.diagram1.EventSink.NodeMouseLeave += EventSink_NodeMouseLeave; 
        private void EventSink_NodeMouseLeave(NodeMouseEventArgs evtArgs) 
            this.diagram1.Controller.InPlaceEditing = true; 
        private void EventSink_NodeMouseEnter(NodeMouseEventArgs evtArgs) 
            //check the condition whether node is Bitmap 
            if(evtArgs.Node is BitmapNode) 
                this.diagram1.Controller.InPlaceEditing = false; 
Shyam G 

Replied On November 21, 2019 08:05 PM UTC

Thank you very much for the quick reply.
It worked perfectly

Shyam G [Syncfusion]
Replied On November 22, 2019 03:55 AM UTC

Hi George, 
Thanks for your update. 
Shyam G 


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