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

Symbol to Form

Thread ID:





44778 Jun 2,2006 12:25 PM UTC Jun 13,2006 04:12 PM UTC WinForms 3
Tags: Diagram
Nick Gardner
Asked On June 2, 2006 12:25 PM UTC

Is their a way to get the Form on which a symbol lives. I.e. I have a Symbol on a diagram. I''ve overrided the OnDoubleClick event of the symbol as such: protected override void OnDoubleClick(NodeMouseEventArgs evtArgs) { MyForm newForm = new MyForm (); newForm .MdiParent = this./* What goes here*/.ParentForm.MDIParent; detsForm.Show (); } So what I achieve is that the new form has the same MDI parent as the form on which the child diagram is placed. Thanks in advance.

Administrator [Syncfusion]
Replied On June 8, 2006 05:20 AM UTC

Hi Nick, I am sorry about this delay in responding. Kindly refer the Samples/In Depth/DiagramBuilder sample which will give you an idea about how to create a new form that has the same MDI parent form. Referring to the Sample''s MainForm class File/New (biFileNew_Click method) function will show you about what you are looking for. Please let me know if you have any further queries regarding this issue. We will be glad to assist you. Thank you for your interest in Syncfusion products. Regards, Meera.

Nick Gardner
Replied On June 8, 2006 07:39 AM UTC

Hi Meera, I know how to create a new MDI parent by referencing the parent form. What I need to do is get to the containing form from a symbol. Is this possible? I.e. given an instance of Syncfusion.Windows.Forms.Diagram.Symbol, is it possible to get from that instance to the form contains it (provided it is contained within a form), e.g. Syncfusion.Windows.Forms.Diagram.Symbol s = new Syncfusion.Windows.Forms.Diagram.Symbol (); // Insert the event node into the diagram. InsertNodesCmd nodeInsCmd = new InsertNodesCmd (); nodeInsCmd.Nodes.Add (node.symbol); nodeInsCmd.Location = new PointF (x, y); diagram.Controller.ExecuteCommand (nodeInsCmd); // Now I want to get to the form from the symbol (I know this code deosn''t exist but is there a way to do this?) Form f = s.Model.Diagram.ContainingForm;

Nick Gardner
Replied On June 13, 2006 04:12 PM UTC

Any update?


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