Hi,
Draw on the control instead of the form.
Ken
-----------------------------
Hi, I draw some rectangles for some purpose, but all of those appears behing
controls such as groupbox,
panel. I want my drawings to appear on top. How can I make it?
Thanks.
G. Alper Alaca - 24 Aug 2004 07:17 GMT
thanks for replying,
but I am trying to draw a series of rectangles to get a transitio
effect --like when you press save button in word, series of rectangles goes
to bottom.
> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks.
G. Alper Alaca - 24 Aug 2004 08:22 GMT
or imagine, you need to draw a diagonal line form top-left corner to
right-bottom corner.
And it will overlay all of the controls.
> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks.
Tommy Carlier - 25 Aug 2004 16:04 GMT
If you just want to draw some movement lines (that are reversible:
painting them again removes them), you can use the
ControlPaint.DrawReversibleLine-method:
- translate your coordinates to absolute screen coordinates
(Control.PointToScreen-method)
- call the method ControlPaint.DrawReversibleLine(startPoint,
endPoint, color)
Remember: both startPoint and endPoint should be SCREEN-coordinates.
G. Alper Alaca - 27 Aug 2004 10:01 GMT
thank you, I'll try it.
> If you just want to draw some movement lines (that are reversible:
> painting them again removes them), you can use the
[quoted text clipped - 5 lines]
>
> Remember: both startPoint and endPoint should be SCREEN-coordinates.