|
-
Jun 11th, 2002, 02:45 AM
#1
Thread Starter
New Member
close down user control in Internetpage
I have made a chat box with 2 exe files, when i shutdown one of these applications a unload function starts to run en de application disconnect at the right way
unload function:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If noc = 0 Then Exit Sub
For i = 0 To 5
If ws(i) = 1 Then
If win(i).State = sckConnected Then
ws(i) = 2 'for sendcomplete()
win(i).SendData "Server shutdown!"
DoEvents
End If
End If
Next i
End Sub
I want to use one of these applications to make a user control but i have one problem, when i use the button disconnect in the user control there are no problems because he disconnect at the right way, but when i use ctrl+F4 to shutdown the internetpage the user control does not disconnect at the right way,
question:
what must i use to disconnect the user-control the right way. In a exe file is this the function unload but what is that in a user control, i have tryed terminate but this doesn't work. kan someone help me with this problem.
enterprise,
The Netherlands
-
Jun 14th, 2002, 04:03 PM
#2
New Member
Don't know if this would work, but
Why not have the controlling program send a signal to the Internet version which, upon receiving it, calls the Unload Form function. Maybe in the form of a bogus message since it is a chat. When the Internet version sees the message, it invokes the Unload Form
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|