Real Software Forums

Do not close the window
Page 1 of 1

Author:  NaNdummy [ Mon Jul 30, 2012 9:00 am ]
Post subject:  Do not close the window

Ive recently foun some befinner topics and questions by friends. They asked how to close a window without reseting its content. Easy, just use "Hide" instead of close. But still, if the user presses the close box, it will close instead. Following script for beginners does avoid this:
Function CancelClose(appQuitting as Boolean) as Boolean
If not appQuitting then return true
End Function

Thats it. I made it just for beginners, because the advanced most likely found it out already :) Put it into the window cancelClose event.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group