0
有人可以知道如何避免TabControl頁面和TabControl本身之間的左右間隙(每個約5-10像素)。我嘗試了一切。所有的利潤率和零碎都是零。如何刪除TabControl上的空白?
有人可以知道如何避免TabControl頁面和TabControl本身之間的左右間隙(每個約5-10像素)。我嘗試了一切。所有的利潤率和零碎都是零。如何刪除TabControl上的空白?
有留在TabPage的源代碼中的註釋由被激怒的微軟程序員:
//HACK: to ensure that the tabpage draws correctly (the border will get clipped and
// and gradient fill will match correctly with the tabcontrol). Unfortunately, there is no good way to determine
// the padding used on the tabpage.
// I would like to use the following below, but GetMargins is busted in the theming API:
//VisualStyleRenderer visualStyleRenderer = new VisualStyleRenderer(VisualStyleElement.Tab.Pane.Normal);
//Padding themePadding = visualStyleRenderer.GetMargins(e.Graphics, MarginProperty.ContentMargins);
感謝:漢斯帕桑特:-)
ThanYou,Vijay。我向VS付了很多錢,我不能做這麼小的事情是不公平的。我們說 - 解決了。 – Buena
沒有人知道什麼錯的問題嗎? – Buena
可能重複[如何刪除WinForms中的容器控件邊框填充?](http://stackoverflow.com/questions/4968267/how-can-i-remove-the-border-padding-on-container-控制在Winforms中) –