Removing panel text

Sep 1, 2014 at 7:51 PM
Edited Sep 1, 2014 at 7:52 PM

I am looking for a way to remove the text from the panels that are placed in tabs.

I would like to remove the white space left behind if you just set the Text property to null.
Jan 14, 2015 at 3:47 AM
By white space I assume you mean the dead space between the bottom of any button and the bottom of the panel?

You can do as a bit of a hack. You can set the Panel Margin of the ribbon to not include the space at the bottom. You should hide the More Button and set the panels text to null. When your form loads, set PanelMargin to a new value. Below is the default value. 15 is padding at the bottom for panel text. Change it to 2 or 3 and see if that works for you. As this is applied to the ribbon, it only needs to be set once.

FooRibbon.PanelMargin = new Padding(3, 2, 3, 15);
Marked as answer by Stumpii on 1/13/2015 at 8:47 PM
Jan 15, 2015 at 3:43 AM
There is an easier method. Change the 'PanelCaptionHeight' property of the Ribbon in the designer! It basically changes what I showed previously.