Changed the gameloop to bee in the main window so that it has full access to the canvas Form.  also tryed to do Double buffereing.