Results 1 to 2 of 2

Thread: FormLayoutPanel problem.

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    FormLayoutPanel problem.

    Hi all,

    I am using the FormLayoutPanel for the first time and I am not able to figure out what is going on.

    On the form, I have a label that can grow and shrink because the content can change. The text includes the name of the client and that name can always be different lengths in regard to characters. I also have a grid on the form.

    As you will see from the attached image, the form that has the FormLayoutPanel on it is showing small and not showing the content of the form. The form is indicated via the green arrow.

    In regard to the FormLayoutPanel, I have set it up in the following way:

    Three rows, one column.
    The label is in the first cell, nothing in the second cell and the grid in the third cell.

    The TableLayoutPanel is anchored top, left, bottom, right.
    Autosize = True
    AutoSizeMode = GrowAndShrink

    The Label in the first cell is anchored top, left, bottom, right
    TextAlignment = MiddleLeft

    The grid in the third cell is anchored top, left, bottom, right and also Dock = Fill

    The form:
    AutoSize = True
    AutoSizeMode = GrowAndShrink

    When I go into 'Edit Rows and Cells' for the TableLayoutPanel:
    Column1 is AutoSize
    Row 1 and Row 3 is AutoSize
    Row 2 is 15px

    I am using Row 2 to be a spacing between the Label and Grid.

    Any ideas what I am doing wrong? I have not used the TableLayoutPanel before.

    Thanks in advance for any pointers.
    Attached Images Attached Images  

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: FormLayoutPanel problem.

    I also changed the ColumnSize to 100% and it didn't change a thing.Hm.

Posting Permissions

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



Click Here to Expand Forum to Full Width