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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

event not being triggered: Diagram1_ControlRemoved

Thread ID:

Created:

Updated:

Platform:

Replies:

78973 Jan 14,2009 05:12 PM UTC Jan 16,2009 09:38 AM UTC WinForms 3
loading
Tags: Diagram
Steven Britton
Asked On January 14, 2009 05:12 PM UTC

I have a diagram that allows users to add windows controls to it. When a user selects the control by clicking on it, then presses the delete key causing the control to be removed, the event ControlRemoved does not get triggerd.

How can I overcome this?

Version: 6.403.0.15



Ajeet M [Syncfusion]
Replied On January 15, 2009 07:39 AM UTC

Hi Binary,

I am unable to understand your query with regard to the event "ControlRemoved". This is because the diagram control does not have any such event called "ControlRemoved".

I would be glad if you could provide with us the code or sample of your application that will help us investigate into this and provide you with a quick solution.

FYI, the syncfusion Diagram control captures each addition and/or deletion of nodes from the diagram using NodeCollectionChanging and NodeCollectionChanged event handles in the diagram1.EventSink.

Let me know if you shall need any further clarifications here.

Thanks and Regards,
Ajeet



Steven Britton
Replied On January 15, 2009 11:08 AM UTC

What do you mean there is no event with that name? If you put a diagram control on a form, double click then look at the events in code, you will see it.

Private Sub Diagram1_ControlRemoved(ByVal sender As Object, ByVal e As System.Windows.Forms.ControlEventArgs) Handles Diagram1.ControlRemoved

Here is another quick question. what should happen when the system executes the following:
Diagram1.View.FitDocument
What happens is it makes it so small that you have to zoom in ALOT to be able to see anything.


Ajeet M [Syncfusion]
Replied On January 16, 2009 09:38 AM UTC

Hi Binary,

Thanks to you for bringing this issue relating to the FitDocument() method under the Diagram.View.

The FitDocument() method under View is a defect, and we shall look into this and fix this at the earliest.

For now, you can use the Diagram1.FitDocument() that fits the document perfectly.

Thanks and Regards,
Ajeet



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

;