Docked multiline textbox is covered by StatusStrip
Asked Answered
V

3

13

I am having a form in which I have multiple line textbox and status strip both docked to the bottom of the form.

Textbox must be docked so it can be resizable while the whole form is resizable.

The problem is that the status strip is covering the textbox on the bottom of the from covering scroll bars down arrow.

Is there any way to make textbox docked to the bottom while still displaying above the status strip?

Regards.

Verjuice answered 3/11, 2011 at 13:38 Comment(1)
I have solved the problem. The Panel woulds do the job perfectly. It can be docked to fill the page and it does not cover/go under the status bar, then I can easily dock my textbox inside of it. This works perfectly, and everything is resizable when needed.Verjuice
E
3

Or you can use Anchor property to resize control when parent resize. By default it set to top left corner. If you enable the bottom than textbox will be shrink or expand as form change size.

Elijaheliminate answered 3/11, 2011 at 13:46 Comment(1)
Anchoring is the best option when space is to be left. In this situation, docking is the best option with the ZOrder set correctly.Parietal
P
36

Right click the text box and click Bring to front (Or the Statusbar and Send to back if there are other controls). The docking is based on the ZOrder of the controls on the form with the front most being the inner most.

Parietal answered 3/11, 2011 at 13:44 Comment(1)
This is what helped in my case, thanks - I knew about docking order, but didn't realize you could do that with these options instead of recreating things in different order or messing in designer code.Superpower
S
8

You could also use a ToolStripContainer, which will take care of what you are trying to do and is generally an efficient way of placing toolstrips such as the statusstrip.

Stefaniastefanie answered 3/11, 2011 at 13:57 Comment(0)
E
3

Or you can use Anchor property to resize control when parent resize. By default it set to top left corner. If you enable the bottom than textbox will be shrink or expand as form change size.

Elijaheliminate answered 3/11, 2011 at 13:46 Comment(1)
Anchoring is the best option when space is to be left. In this situation, docking is the best option with the ZOrder set correctly.Parietal

© 2022 - 2024 — McMap. All rights reserved.