The original utility was probably written for v5.x, and some syntax has changed with XI. I’m going from memory here, but change .LogonAs to .LogonDialog.
By the way, you only need to reference the Designer library.
Ya I tried changing LogonAs to LogonDialog , then also it is giving the same error. I don’t know what is wrong.
This change i made previously also , somewhere I red that instead of LogonAs , one has to use LogonDialog , so I did the change , but after that also it’s not working.