Hi folks.

I'm working on a test graphics app, I'm completely new to graphics, but I'm getting the hang of it. However, I have a class that needs to be completely self contained. The class will create (for now) a box which will move around the screen on a self contained timer until a random counter is reached.

There could be very many of these class objects flying about at any time and I could setup a load of variables on the main form to track all this data, but I'd far sooner pass the starting variables to the class and let it get on with it all, including disposing itself. This is the bit I can't find an answer to.

I can kill off a form from within the form, but I can't (with the help of google) find a way to kill a class object within the class itself. If it's possible. And I can't imagine it isn't, after all a form is basically a class.

As usual I don't want anyone to spend time writing working code for me, but if someone could point me in the right direction, or explain the principle I would be forever be thankful.