![]() |
what is the suggested place to call savesettings? |
Post Reply ![]() |
Author | |
haraldradi ![]() Newbie ![]() Joined: 31 August 2006 Location: Austria Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
Baldur ![]() Senior Member ![]() Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
![]() ![]() ![]() ![]() ![]() |
In wich language ?
For example:
public sub Form_Unlaod()
end sub
WM_DESTROY-Message
|
|
![]() |
|
haraldradi ![]() Newbie ![]() Joined: 31 August 2006 Location: Austria Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() |
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. |
|
![]() |
|
Baldur ![]() Senior Member ![]() Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
![]() ![]() ![]() ![]() ![]() |
In a custum-control you have a terminate-event.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |