Form resize problem



  • Hi guys,

    I have so much questions today 🙂

    Here is my question:

    At the buttom of my GUI there is a richtext box,used to show some information. I hope now, I can show or hide the richtext box as my wish, meanwhile the GUI could also be resize automaticlly according the action. That means if I hide the richtext box, then the GUI will also be smaller. If I show the richtext box, the GUI will aslo growth up.

    In one word, how to hide and fold part of the Form?

    Hard to discribe°° 😃

    Do u get what I want.

    Regards,

    bag



  • Hi
    you can resize the ClientSize of your Form:

    ClientSize = new Size(ClientSize.Width, ClientSize.Height - "Size of your rich edit box");



  • Hi witte,

    thanks a lot. u have answered a lots of my questions.

    I have tried what u said. It works but new problem occurs. The statusStrip is disappeared.
    In my case, the richtext box is above the statusStrip, now I wanna only hide the richtext box through a click on a hide/show button. The statusStrip should be always seen.

    Any good suggestion form u?

    Regards,

    Bag

    witte schrieb:

    Hi
    you can resize the ClientSize of your Form:

    ClientSize = new Size(ClientSize.Width, ClientSize.Height - "Size of your rich edit box");



  • Is that StatusStrip Docked? Set Dock = Bottom in the forms designer.



  • witte schrieb:

    Is that StatusStrip Docked? Set Dock = Bottom in the forms designer.

    😃 😃 👍 👍 👍

    works~~~~~~~~~~~


Anmelden zum Antworten