Here's my code:
Public frmQTemps() As QTemps
Code in my Main Form:
Set frmQTemps(SSTab1.Tab) = New QTemps
frmQTemps(SSTab1.Tab).Tag = CStr(SSTab1.Tab)
frmQTemps(SSTab1.Tab).Caption = "Temperature for Q" & qsntxt(SSTab1.Tab).Text
I have this form QTemps that I will be loading several instances of. Now, I want to be able to tie each instance to a specific tab on my main form. Now, this method let's me do that to a certain extent. Once I have two tabs and load two instances of this form and start them both processing my task, I get stopped. My winsock control array for each tab complains with:
Run-Time Error 91. Object variable or With block variable not set.
This is at a point where i'm referencing an object on the QTemps forms that I have loaded. But it only seems to happen when I get them both processing at the same time. Any ideas, thoughts?