dwks
i think i read the [STAThread] is something to do with the dot net environment about threading, you can take it out and it doesnt seem to make any difference. thanks for your algorithm, the language doesnt matter, its the idea that helps


luigi