Is there any way in WinForms to emulate border-collapse from CSS?
Imagine this: You have a Panel control with a border of FixedSingle, giving it a 1px black border, docked to the top of a form. You add a second Panel control with the same border and also docked to the top, in effect stacking that Panel underneath the first Panel. The problem is, where the bottom of the top Panel touches the top of the bottom Panel, the border is now 2px wide (bottom of top Panel (1px) + top of bottom Panel (1px) = 2px).
I have been messing with the Panel control properties, but I couldn't see anything to have these touching edges overlap so there is only 1px of border between the Panels. Anyone have any ideas?
(I am using Visual Basic .NET 2008)