Dynamically resize groupboxes at runtime
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Dynamically resize groupboxes at runtime

  1. #1
    Join Date
    Jun 2001
    Location
    Denmark
    Posts
    448

    Question Dynamically resize groupboxes at runtime

    I have a program with three groupboxes, each containing a datagrid.
    At the moment, only one of the groupboxes and datagrid sizes with the form, and it has been anchored to all four sides.
    I'd like it to be all three of them, and also I'd like to be able to size them inside the form with the mouse, if one of the datagrid suddenly contains more data than the other or whatever reason the user might have to size them.

    They are placed over/under each other.

    If this is unclear I can provide a screenshot.

    Thanks in advance.

  2. #2
    Join Date
    Oct 2004
    Location
    Rocket City
    Posts
    220

    Re: Dynamically resize groupboxes at runtime

    Have you looked at System.Windows.Forms.SplitContainer which has two panels the user can resize?

  3. #3
    Join Date
    Jun 2001
    Location
    Denmark
    Posts
    448

    Re: Dynamically resize groupboxes at runtime

    Yes, I managed to solve it, and using this:
    http://www.codeproject.com/Articles/...r-control-in-C
    which is derived from SplitContainer. Works like a charm, once I learned how to put the **** things correctly into my dialog :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center