Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
UltraSplitter disappears from form on resize.
posted

Hi,

I am having an issue where the UltraSplitter control disappears from the form when the form is resized.

I have a form with two panels. The panels are separated by the splitter control docked to the top panel.

I run the application, maximize the form and drag splitter to near the top of the form.

I then click on the maximize button again to restore the form size.

When this happens the splitter control and the top panel are outside of the control area of the form and I cannot access the splitter until I maximize the form again.

Is there a way to keep the splitter inside of the form under this condition?

This also happens when the splitter is docked to the bottom panel and dragged to near the bottom of the from.

Thanks

Parents
No Data
Reply
  • 6158
    Verified Answer
    Offline posted

    Hello,

    Here is what I can surmised based on your description.

    Similar to the .Net Splitter, the UltraSplitter resizes the attached control. In this scenario where you maximize the form and then drag the splitter, the size of the control is increased and made larger than the form in it's normal state. When the form is restored into the normal state, the control maintains its size and thus extends beyond the client area of the form.

    If this is the case, you can probably work around the issue by handling the form's SizedChanged event, and setting the parentControl's MaximumSize property relative to the ClientSize of the form.

    private const int SomeExtent = 50;

    private void Form1_SizeChanged(object sender, EventArgs e)

    {

    this.parentControl.MaximumSize = new Size(0, this.ClientSize.Height - SomeExtent);

    }

    Let me know if you have any questions.

Children
No Data