I have deleted your previous second and third posts. The second one contained a ridiculous amount of code and then, to make matters worse, the third one quoted all that code. Please use a bit of common sense. Post ONLY the code relevant to the problem. That certainly does include all the designer code and almost certainly doesn't include all the user code either. Also, when posting code snippets, use the formatting tools provided to format it as code. Among other things, that will retain indenting, making the code easier to read, and it will also provide a box with a scrollbar, making necessarily long code snippets easier to manage.