Hi, I am doing some subclassing. I know that I must unhook before I use the End statement. But If I unhook then on next line the End statment is used to end the program it gpfs! I assume it has not fully unhooked. If I have two buttons one that unhooks and one the has the End statment, and I press the unhook button then the end button program shutsdown ok, I assume that it has had time to fully unhook. But this is not a professional way to end a program! ie tell users to shut a program down press this one button then the other one! It does close ok if the X in the top right hand corner is used however. I assume the X in the top right hand corner must handle the shut down of the program differently.

Thanks for your help! I assume that this question is really a beginers question.