I’m using a Winsock control to negotiate a connection with servers that provide date and time.
The method is successful when the code is on same VB Form as the Winsock control.
However in my App, which has an MDI and several Child Forms, I would like to move the code to a Code Module - rather than having to load and unload a Form - and associate the Winsock with the MDI Form. No can do: referencing the Winsock in the Module, ie MDIMain.Winsock1, hits a brick wall.
The method is successful when the code is on same VB Form as the Winsock control.
However in my App, which has an MDI and several Child Forms, I would like to move the code to a Code Module - rather than having to load and unload a Form - and associate the Winsock with the MDI Form. No can do: referencing the Winsock in the Module, ie MDIMain.Winsock1, hits a brick wall.