Is it possible to make the outline of a canvas invisible?

Hello,

Is it possible to make the outline of a canvas invisible?

I don’t want the canvas to be obviously there, but if one drags a .jpg over it, it only reveals itself at that point.
Also, if one clicks on it, because he/she knows that it is there it reveals itself with its outline.

Thanks.

Lennox

You would have to draw the outline yourself in the Paint event if certain conditions are true. Generally speaking, you would have a flag in the canvas that you set true when you click or when you drag over the canvas, then invalidate the canvas so it redraws. In the paint event, if the flag is true, draw the outline, otherwise, don’t.

Thanks Tim,
Lennox