Like Tree1Likes
  • 1 Post By Cat

C# GUI form

This is a discussion on C# GUI form within the C# Programming forums, part of the General Programming Boards category; I am simply wondering how can I create a GUI application that can resize also the control buttons. If the ...

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    15

    C# GUI form

    I am simply wondering how can I create a GUI application that can resize also the control buttons. If the user decide to make the windows bigger or smaller I would like my textbox, buttons, etc.. to follow. Like in Java they use a layout manager, but I can't seem to find the answer for c#. I though to use table layout panel, but it doesn't expand when expanding the windows, unless i miss something

    Thanks in advance

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    In the "Dock"-property, select "Fill" to autoplace it over the whole parent area.
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    15
    Thanks.
    I knew i was missing something!!

  4. #4
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    Quote Originally Posted by Jseb View Post
    Thanks.
    I knew i was missing something!!
    And you can use anchoring for many other kinds of resizing needs.
    Jseb likes this.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Windows form C++ - referencing the form
    By rocketman50 in forum Windows Programming
    Replies: 2
    Last Post: 05-22-2010, 12:58 PM
  2. Open a Form within a Form
    By Coding in forum Windows Programming
    Replies: 3
    Last Post: 01-29-2008, 08:13 PM
  3. Form
    By Coding in forum C++ Programming
    Replies: 1
    Last Post: 01-25-2008, 04:13 PM
  4. Accessing Controls on a different form from one form.
    By Tperry23 in forum C# Programming
    Replies: 7
    Last Post: 06-09-2005, 07:13 PM
  5. long form of year to short form?
    By bc120 in forum C Programming
    Replies: 2
    Last Post: 12-31-2001, 05:34 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21