Quote Originally Posted by Bonnie West View Post
You probably need to familiarize yourself first with the concepts of Arrays and UDTs. However, if you're in a hurry, then you just need to replace all instances of strItems(p, 0) with strItems(p).hWnd and strItems(p, 1) with strItems(p).Top. BTW, the strItems array name doesn't quite describe what that array really is. Perhaps, udtTxtBoxes might be more meaningful?
I just realized that there are 3 textboxes on the login dialogue box. The very first textbox is disabled, and I didn't think that it would go into our equation. But I just realized that VB doesn't care if that textbox is disabled or not, it will still find it.

So that must be why it was erroring out in the array, because we need one that will support 3 values instead of 2 right? Is there an easy way to tell it to disregard the disabled text box? Or is there any easy way to modify the code to only pass the login info to the bottom two text boxes?

Name:  Login.jpg
Views: 1209
Size:  25.8 KB