>Hi,
>
>I know that the error mentionned in my Title is a very common and simple one but I can't seem to resolve it.
>
>I have a project with it's start set as a "Sub Main". In that "Sub Main", I create an instance of a form and I load it. The code corresponds to the following:
>
>Public Sub Main()
> *Code*
> MsgBox "Before set server"
> Set frmServer = New netserver
> MsgBox "Before load server"
> Load frmServer
> MsgBox "After load server"
> *Code*
>End Sub
>
>As you can see, I left the traces there. I know that the error occurs during the load of my form because I don't get the message "After Load server". I have also put some traces in the Load method of the form and I can tell you that the error occurs before the load is called because a trace put in the first line of the load method never appeared.
>
>The wierd thing is that the error doesn't show up on most of the computers where I installed the program. That's what made me think that I must have forgotten to distribute some controls (that are on the server form) with my program on some computers. So, I tried to use the MS distribution wizard (just to be sure that I distributed everything) with no success. After running the program installed with the wizard, the error was still there.
>
>I'm now officially clueless.
>
>Oh yes, and one more thing: I have two controls on my server form: a WinSock control (corresponding to the file mswinsck.ocx which I know is distributed and registered on all the computers) and a timer object.
>
>That's it! If any of you have a clue of what I should try next, please please please let me know!
Use Depends.EXE to see required DLL and version. (
http://support.microsoft.com/support/kb/articles/Q178/4/89.ASP)
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com