Ahh, you are right! This works well now. Though I am deleting the mainwindow still myself. Control is now the application .. yes ok. Thank you.