Hi,
Border3DStyle.Raised will give a more raised look than RaisedInner, but I
suspect your real problem is using the parent ClientRectangle instead of
panel1.ClientRectangle. Try changing the line to
Rectangle r = panel1.ClientRectangle;
Btw, you don't need to specify Border3DSide if you want all sides to be
painted.
--
Happy Coding!
Morten Wennevik [C# MVP]
"Cdude" wrote:
> Hello. I need to make a 3D panel. At the moment i am using
>
> private void panel1_Paint(object sender, PaintEventArgs e)
> {
> Graphics g = e.Graphics;
> Rectangle r = ClientRectangle;
>
> Border3DStyle style = Border3DStyle.RaisedInner;
> ControlPaint.DrawBorder3D(g, r, style, Border3DSide.All);
>
>
> }
> I need a more Raised look than this. And i need all the sides to be
> raised.
>
|