Page 1 of 1

TChart Control Disappears at design time

Posted: Thu Apr 12, 2007 8:14 pm
by 8739068
In Visual Studio 2005, I am creating a user control. I place a FlowLayoutPanel control in the user control, maximize it and anchor it to all sides so the flow control fills the entire usercontrol UI. I then drop a TChart control onto the FlowLayoutPanel control. I resise the TChart control so it fills the entire size of the FlowLayoutPanel control. Then, I set the TChart Anchor property to anchor to all 4 sides. The TChart's height goes to 0.

Anyone else see this behavior? It is very repeatable for me.

Posted: Fri Apr 13, 2007 9:56 am
by narcis
Hi Mike,

This seems not to be a TeeChart problem as the same happens if you use a System.Windows.Forms.Panel or System.Windows.Forms.Button in a FlowLayoutPanel. The same problem also happens when setting Dock property to DockStyle.Fill instead of Anchor property.

At the URL below you can read a pretty similar issue reported to Microsoft and their reply.

http://connect.microsoft.com/VisualStud ... kID=113563

Hope this helps!