bytecode77
bytecode77

Reputation: 14840

Remove SplitContainer panel padding in WinForms

Is there a way to remove to padding from the Panel within a SplitContainer? So far I tried setting or overwriting the Padding Property with no effort. I don't necessarily want to end up custom drawing everything either.

Screenshot http://xload.dev-ch.com/6ef9241aba201922/screen397.jpg

Upvotes: 3

Views: 2008

Answers (1)

SwDevMan81
SwDevMan81

Reputation: 49988

If you want the TextBox to fill the entire TabPage control, you need to set the TextBox Dock property to Fill, change the Margin property to 0,0,0,0 and then in the TabPage properties, make sure the Padding is set to 0,0,0,0.

Upvotes: 1

Related Questions