I have a timer that will be used to draw an image
The interval is 3 seconds, In the OnPaint() I will change the coordinates of the rectangle I draw
when I run the program it just doesn't work.

Code:
Timer timer=null;
int x;
int y;
private void Func()
{
   timer=new Timer();
   x=1;
   y=2;
   timer.Tick+=new EventHandle(timer_Tick)
}

protected void timer_Tick(EventArg a)
{
}

protected overide void Onpain(PaintEvetArg e)
{
   Graphics g=e.grahics;
   g.drawRectanfgle(brush,x,y,12,12)
   x++;
   y++;
}
Thanks