Question On program terminate/exit

markthien

Member
Joined
Nov 9, 2008
Messages
8
Programming Experience
5-10
Hi guys ,

I'm do a database access (MS Access DB), which is a small program using VB.Net under VS Express Edition . However, I want to connection to be closed whenever the program exit or terminate (End Task under Windows Task Manager) by the user. What is the sub function to do that? OnProgramExit or OnPrgramTerminate ?

regards,
Mark
 
Do not post the same question multiple times. Your other thread has been deleted. Also, please post in the most appropriate forum for your question. This is a VB question, not a database question or an IDE question, so it belongs in the VB section. Moved.
 
Back
Top