THANKS, it's working now, but still have a small problem. When I run the setup, only 4 lines, or sometimes 4 lines and a half, of text is shown in the main window. Not the complete text. Do you have any ideas? Anyway I made a big step forwards. Thanks again