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.
Syncfusion Feedback

Symbol to Form

Thread ID:

Created:

Updated:

Platform:

Replies:

44778 Jun 2,2006 08:25 AM Jun 13,2006 12:12 PM Windows Forms 3
loading
Tags: Diagram
Nick Gardner
Asked On June 2, 2006 08:25 AM

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 01:20 AM

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 03:39 AM

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 12:12 PM

Any update?

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

;