>Now since I want to have it active within the life of a form class
>instance only, the dismissal should be in form.deactivate, I suppose -
>yes, I've took a look at the help, I should dismiss it there, but in
>unload also, since deactivate doesn't get triggered when the form just
>unloads. Or just put this.deactivate in unload?
Dragan,
If you persue the OKL appraoch to this and Don't do this in the fomr's keypress event you will have many problems with the OKL firing at the wrong times. The user can activate the form, then go click a button or menu option (which does not fire the deactivate of the form) and while that menu opr toolbar code is running they press the OKL key and you OKL routine fires.
If you put the key processing in the form's keypress it will only fire when the user is in the fomr and never when they are anywhere else. The keypress of the fomr will never get called when code is running and therefore it will never interrupt code so you don't have to check for that.