Hi,

My application calls a class derived from the Canvas class. When I click on a draw button in my application, a new instance of this class is created and a grid is redrawn.

I m facing a problem in this redrawing. Sometimes, when I click on the draw button, the paint method of the canvas class is executed, but it does not draw anything. However, if I minimise my window and get it up again, it redraws itself.. I don't know why sometimes the paint is executed and at other times it doesn't, since this kind of a behaviour is randomly observed.

If anyone knows the reason, please help... it is very urgent.

Thanks and regards,
Manik