The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
ADAdministrator Syncfusion Team 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.
NGNick GardnerJune 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;