WinForms Panel's Fixed3D border is not rendered with the OS visual styles

192 views Asked by At

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:

enter image description here

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)?

0

There are 0 answers