Thank you very much for your reply. That is a much neater way of adding the handler, thnx for that. However, it didn't work . I am going to copy paste the code in another project tommorrow and see if it makes a difference.