TablePanelLayouts and StatusStrips

Ask questions about creating Graphical User Interfaces (GUI) in PowerShell and using WinForms controls.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 1 year and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
Lembasts
Posts: 405
Last visit: Wed Mar 20, 2024 1:40 pm
Has voted: 1 time
Been upvoted: 1 time

TablePanelLayouts and StatusStrips

Post by Lembasts »

I have been trying to add both a tablepanellayout and statusstrip such that the statusstrip is anchored to the bottom and the tablepanellayout is 'anchored' to just above the status strip.
I cant anchor the tbl to the bottom as well so I how is this implemented?
Do you put the status strip in the bottom row of the tbl itself?
I would like the tbl to fill out all the remaining space except the status strip as the form is resized.

Thanks
David
by jvierra » Mon Mar 28, 2022 10:36 pm
There is another method:

Add Statusstrip and it will anchor at the bottom of the form.
Add the TLP and set the "Dock" property to "Fill".

Now that will give you the same effect and the TLP and SS will expand and contract with the form.
Go to full post
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: TablePanelLayouts and StatusStrips

Post by jvierra »

Anchors
  • TableLayoutPanel = top,left,bottom,right
    StatusStrip = left, bottom
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Re: TablePanelLayouts and StatusStrips

Post by jvierra »

There is another method:

Add Statusstrip and it will anchor at the bottom of the form.
Add the TLP and set the "Dock" property to "Fill".

Now that will give you the same effect and the TLP and SS will expand and contract with the form.
User avatar
Lembasts
Posts: 405
Last visit: Wed Mar 20, 2024 1:40 pm
Has voted: 1 time
Been upvoted: 1 time

Re: TablePanelLayouts and StatusStrips

Post by Lembasts »

Thanks heaps James.
My initial designs were before I knew about table panel layouts but they look awesome for designing forms that are 'resize friendly'.
This topic is 1 year and 11 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked