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

Strange ControlNode Problem

Thread ID:

Created:

Updated:

Platform:

Replies:

41117 Feb 22,2006 06:49 PM UTC Apr 6,2006 10:19 AM UTC WinForms 5
loading
Tags: Diagram
George Keller
Asked On February 22, 2006 06:49 PM UTC

I''m currently evaluating and one of the most interesting aspects of EssentialDiagram is the ability to host windows.forms.controls. But, I''m having a problem. When I add a button, then move that button slightly, I''m see tweleve or so phantom buttons appear. What am I missing? Here''s my code snippet: Dim ctrlnode As New ControlNode() ctrlnode.ControlAssemblyName = "System.Windows.Forms" ctrlnode.ControlClassName = "System.Windows.Forms.Button" Dim ctrlnodetool As ControlNodeTool = CType(Diagram1.Controller.GetTool("ControlNodeTool"), ControlNodeTool) ctrlnodetool.Node = ctrlnode Diagram1.Controller.ActivateTool(ctrlnodetool)

George Keller
Replied On February 23, 2006 09:37 PM UTC

More information on this problem. It appears to only occur on those controls that implement visual styles. If I disable visual styles or set the button to flat, for example, it will work fine. (BTW I''m using VS2005). So, must be a problem with EssentialDiagram handling visual styles, eh?

Administrator [Syncfusion]
Replied On April 5, 2006 07:34 PM UTC

We''re getting the same problem here. The "phantom" controls only appear on file pickers, and buttons, textboxes, comboboxes, etc are all fine. >I''m currently evaluating and one of the most interesting aspects of EssentialDiagram is the ability to host windows.forms.controls. But, I''m having a problem. When I add a button, then move that button slightly, I''m see tweleve or so phantom buttons appear. What am I missing? Here''s my code snippet: > >Dim ctrlnode As New ControlNode() >ctrlnode.ControlAssemblyName = "System.Windows.Forms" >ctrlnode.ControlClassName = "System.Windows.Forms.Button" >Dim ctrlnodetool As ControlNodeTool = CType(Diagram1.Controller.GetTool("ControlNodeTool"), ControlNodeTool) >ctrlnodetool.Node = ctrlnode >Diagram1.Controller.ActivateTool(ctrlnodetool) >

Administrator [Syncfusion]
Replied On April 5, 2006 07:37 PM UTC

Sorry, let me rephrase that. The phantom controls are only occurring on Buttons >We''re getting the same problem here. The "phantom" controls only appear on file pickers, and buttons, textboxes, comboboxes, etc are all fine. > >>I''m currently evaluating and one of the most interesting aspects of EssentialDiagram is the ability to host windows.forms.controls. But, I''m having a problem. When I add a button, then move that button slightly, I''m see tweleve or so phantom buttons appear. What am I missing? Here''s my code snippet: >> >>Dim ctrlnode As New ControlNode() >>ctrlnode.ControlAssemblyName = "System.Windows.Forms" >>ctrlnode.ControlClassName = "System.Windows.Forms.Button" >>Dim ctrlnodetool As ControlNodeTool = CType(Diagram1.Controller.GetTool("ControlNodeTool"), ControlNodeTool) >>ctrlnodetool.Node = ctrlnode >>Diagram1.Controller.ActivateTool(ctrlnodetool) >>

Administrator [Syncfusion]
Replied On April 6, 2006 10:15 AM UTC

Hi, Thanks for your support to Syncfusion. I am afraid that I was not able to reproduce the issue you have described here.I have tested this condition with a Sample in which I created a ControlNode that hosts Windows Form Button control and changed the style property as well. The application works fine for me. Kindly, refer the attached Sample and if you still run into any problem could you please modify the sample/post us some reproducing steps. Please let me know if you have any further queries. Regards, Praveena.

CoordinateSystem.zip

Administrator [Syncfusion]
Replied On April 6, 2006 10:19 AM UTC

Hi, Sorry for the inconvenience .Kindly refer this Sample and let us know if this helps you. Regards, Praveena.

ControlNode_Sample.zip

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

;