phantom8l 0 Newbie Poster

i just finished making my custom renderers after a while i noticed a small problem and isolated the problem to onrendertoolstripborder it seems when i paint my border around my tool strip it also paints it to any open dropdown menus here is an image to show what i mean

it only happens when my form is at the top of my screen

http://img96.imageshack.us/img96/9099/image4q.png

and here is the code i used to draw the border

protected override void OnRenderToolStripBorder(ToolStripRenderEventArgs e)
        {
            //base.OnRenderToolStripBorder(e);
            Pen pen = new Pen(Color.FromArgb(255, 69, 69, 69), 1.9f);
            Pen pen2 = new Pen(Color.FromArgb(255, 69, 69, 69), 1.9f);

            Rectangle rect = new Rectangle(e.ToolStrip.GripRectangle.X - e.ToolStrip.GripMargin.Left, e.ToolStrip.Bounds.Y + 2, e.ToolStrip.Bounds.Width - 5, e.ToolStrip.Bounds.Height - 5);
            Rectangle griprect = new Rectangle(e.ToolStrip.GripRectangle.X - e.ToolStrip.GripMargin.Left, rect.Top,
                e.ToolStrip.GripRectangle.Width + e.ToolStrip.GripMargin.Right, rect.Height);

            LinearGradientBrush b = new LinearGradientBrush(griprect, clsClrs.clrHorBG_GrayBlue, clsClrs.clrHorBG_White, LinearGradientMode.Horizontal);

            e.Graphics.FillRectangle(b, griprect);
            e.Graphics.DrawRectangle(pen2, griprect);
            e.Graphics.DrawRectangle(pen, rect);
        }

i must suck with search engines because i could not find any similar problems anywhere, thanks.