Did it, but now I have other problem ...
I call drawlines by clicking on some image(button) ,but it paints INSIDE the
control was called from by paint event , instead of doing it on whole
screen, here is the code:
Graphics g = e.Graphics;
Point[] pts =
{
new Point(tab.button.Left, tab.button.Top), //tab.button - is the
button clicked
new Point(tab.button.Left+tab.button.Width, tab.button.Top),
new Point(tab.button.Left+tab.button.Width, tab.button.Top +
tab.button.Height),
new Point(pnlMainbar.Width,tab.button.Top + tab.button.Height),
//pnlMain - some panel on the screen
new Point(pnlMainbar.Width, pnlWorkArea.Top + pnlWorkArea.Height),
//pnlMainbar - see pnlMain
new Point(pnlWorkArea.Left, pnlWorkArea.Top + pnlWorkArea.Height), //
pnlWorkArea - see pnlMain
new Point(tab.button.Left, tab.button.Top)
};
g.DrawLines(new Pen(tab.tabColor,3),pts);
How can I force it to draw ON THE SCREEN, but not ON THE CONTROL