Print Page | Close Window

what is the suggested place to call savesettings?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=8594
Printed Date: 20 September 2024 at 4:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: what is the suggested place to call savesettings?
Posted By: haraldradi
Subject: what is the suggested place to call savesettings?
Date Posted: 30 October 2007 at 6:50am
is there anything like an onsettingschanged or onunload event that i could hook to persist the controls settings?



Replies:
Posted By: Baldur
Date Posted: 30 October 2007 at 1:11pm
In wich language ?
 
For example:
 
public sub Form_Unlaod()
end sub
 
WM_DESTROY-Message


Posted By: haraldradi
Date Posted: 31 October 2007 at 4:06am
C#

the thing is, that i don't want to do it in the form but in the control itself. i made a custom user control in c# that contains the active-x component, but there is no such thing as an unload handler for controls.

i overloaded dispose for this purpose, but it seems a bit too late as you never know in which order components are disposed and hence you might reference already disposed components.


Posted By: Baldur
Date Posted: 31 October 2007 at 6:47am
In a custum-control you have a terminate-event.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net