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
543
UltraExpandableGroupBox, Expanded property
posted
Hi everyone!

I have a windows form which has a UltraExpandableGroupBox control. When the form loads, the control shows collapsed, as it was set at design time. That's fine.

Now I would like to expand/collapse the control at runtime, depending on certain variables on the form. So I tried to set the Expanded property on the control in this way:

     this.grpDetail.Expanded = true;     // (really simple!)

but without any appreciable result.

Curiously, when I debug my application that property is always true, even if the control shows collapsed. Do you have any suggestion? Something I’m missing...?

Thanks, Valentina
Parents
  • 37774
    posted

     Valentina,

    It's hard to say what's going on here; the Expanded property should certainly not always be showing true if it's collapsed.  I just tested this in my application where the group box starts off collapsed and clicking a button expands it, and it worked fine.   What is being serialized in the designer code for the ExpandedSize property?  I know that there have been bugs in the past regarding the serialization of these properties, so you may want to ensure that you have the latest hotfix.

    -Matt

Reply Children