If the BorderStyle
property of many intrinsic WinForms controls, such as ListView or TreeView, is set to Fixed3D
, the border of such a control is rendered using the OS visual styles (sure, if they are enabled). However, this does not work for the Panel control. Compare the ListView and Panel controls on the screenshot below:
Is there a trick that can cause the 3D border of the Panel control to be rendered with the visual styles? If not, what is workaround (say, using custom painting)?