Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - what is the suggested place to call savesettings?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

what is the suggested place to call savesettings?

 Post Reply Post Reply
Author
Message
haraldradi View Drop Down
Newbie
Newbie


Joined: 31 August 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote haraldradi Quote  Post ReplyReply Direct Link To This Post Topic: what is the suggested place to call savesettings?
    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?
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2007 at 1:11pm
In wich language ?
 
For example:
 
public sub Form_Unlaod()
end sub
 
WM_DESTROY-Message
Back to Top
haraldradi View Drop Down
Newbie
Newbie


Joined: 31 August 2006
Location: Austria
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote haraldradi Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Posted: 31 October 2007 at 6:47am
In a custum-control you have a terminate-event.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.