>I solved the problem by making the form a class, as Vasily and others recommended. After a bit of groping about, it now works fine, and I have learned a bit about OOP as well...
Glad that you got your problem solved ;). Also, I'm Vladimir not Vasily ;) (these names are different after first character ;))))
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer