Hi guys
When I add an UltraChart to my form which is an mdi child form, the UltraChart screws up the layout of my form. WHen I delete the chart, everything is back to normal.
How can I solve this problem?
Hello Pedro,
Please provide me with what I requested in my last post.
Hello Dave
I created a new WinForm as MDI child with two layout panels to demonstrate what happens.
As you can see in the attached screenshots everything fits perfect in my MDI child form.
When I simply add an UltraChart to the form the screensize seems to change as you can see in screenshot 2 (panels go out of the screen)
Thank you for the screenshots. I'm not exactly sure why the UltraChart is causing the layout of your form to change, but you might be able to resolve the issue by setting the red panel's Dock property to Top, the green panel's Dock property to Bottom, and the UltraChart's Dock property to Fill.
Hi Dave
Thanks for the information, but that is not what I want to do with my layout.
I now try to adjust the size of everything manually so that it fits the mdi child form, but this is not a great way of working...
Thanks anyway
You might want to also look into using the Anchor properties of the panels and controls. The Anchor properties ensure that the distance between the edge of the control and the edge of the form stays the same when the form is resized.
I am already using the anchor property in all my forms.
Best regards
Please let me know if you've had a chance to try my sample project.
I've attached a project with everything but the chart included. I'd like you to add an UltraChart to Form1 in my sample project and then let me know if the runtime layout changes.
I just created a new mdi form without borders to fit in the main screen with explorer bar.
On the mdi form i Put 2 labels and i anchored them left-top-right and the other left-bottom-right
When I add the chart nothing changes in design view, but when I run my project and open the mdi form everything changes position. I don't know what more I can tell you, but I tried it different times and on different mdi forms with the same result.
best regards
I tried to reproduce the issue, but was unable to. Using your screenshots as a guide, I created a form with a status bar, an UltraExplorerBar, and an UltraSplitter. I then added a label with a red background on top and a label with a green background at the bottom. Proceeding with adding an UltraChart did not change the position of any of the controls already on the form.
If you could provide some more details about how the form in your screenshot was created, I'd be able to help you better. Please let me know if you have any other questions about this issue.