I just created a brand-new SDI project, added the OnCreate handler to the view class, and then your code, and it works fine. I then tried it with a new MDI project and it also works fine. I suggest you try it yourself and check what the difference is. Regards, Alvaro
The world is a dangerous place, not because of those who do evil, but because of those who look on and do nothing. -- Albert Einstein