You might get more help in the .NET forum - this is VB6 but your code is .NET