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
155
Problem with styling modal form in MDI application
posted

I'm making an MDI application in which I would like to use the AppStylist for the mdi parent and childs. It works fine except for a mdi child called with the ShowDialog() method. Each form has the UltraToolBarsManager. If the ribbon is visable I get the round (office 2007) icon in the titlebar of the dialog, which I don't want. When I set the Visable property of the ribbon to false and the FormDisplayStyle to RoundedSizable it seems almost ok, except that the minimize, maximize and close button are not styled properly. Is there a way to style a modal form the same way as a non-modal form (having the same titlebar)?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    I'm afraid I do not understand what you mean. You cannot show an MDI Child form using ShowDialog. This results in an exception " Form that is not a top-level form cannot be displayed as a modal dialog box. Remove the form from any parent form before calling showDialog."

Children