Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 22013

What if someone "Force shutdown" (via taskmanager) my program ?

$
0
0
*English aint my first language, sorry for my mistake.

Hello !
Im making some kind of Chat using client/server.
And i was looking for some kind of "Shutdown process handler"
I mean

I got some code in my Form_Unload
But will it work if someone close my via Ctrl alt delete + Shutdown process ? ( i personally think it wont work)
Like

Code:

Form_unload
If socket1.state = sckconnected then
socket1.senddata "YourClientIsGone"
socket1.closesck
end if

Is it going to work if we "Force shutdown" it ?
Thanks you very much !:)

Viewing all articles
Browse latest Browse all 22013

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>