Hi!

The code works great in runtime, but i still get a VB6 error when i stop the program, and VB shutsdown... I'm gonna reinstall vb and see if that solves the problem. What version of VB do you run? Do you have the service pack 3 installed if you are running VB6 ??

Thanks for the help with the code!

Cheers
Smirre