Thank you very much Allen. It's worked fine. I've made some small modifications on your code to match what I needed at the beginning and I'm listing it belwo for the benefit of other users. Thanks again. using System;
using System.Collections;
using System.Collections.Generic;
using System...