S
Steph.
Hi,
I was looking for a way to get a Panel with a Raised border style ...
I found the simplest way to do it, so I share it with you :
public class StpPanelanel
{
const int WS_EX_DLGMODALFRAME = 0x00000001;
// Provide window style constants to enable control border
protected override CreateParams CreateParams
{
get
{
// Take the default params from the base class
CreateParams p = base.CreateParams;
// Add the extended "3d sunken border" style
p.ExStyle = p.ExStyle | WS_EX_DLGMODALFRAME;
return p;
}//EndGet
}//EndProc CreateParams
}//EndClass StpPanel
A+
Steph.
I was looking for a way to get a Panel with a Raised border style ...
I found the simplest way to do it, so I share it with you :
public class StpPanelanel
{
const int WS_EX_DLGMODALFRAME = 0x00000001;
// Provide window style constants to enable control border
protected override CreateParams CreateParams
{
get
{
// Take the default params from the base class
CreateParams p = base.CreateParams;
// Add the extended "3d sunken border" style
p.ExStyle = p.ExStyle | WS_EX_DLGMODALFRAME;
return p;
}//EndGet
}//EndProc CreateParams
}//EndClass StpPanel
A+
Steph.