Hi all,
I've got a problem I can't figure out how to fix.
I use the Developer's Handbook code for form timeout, which basically calls a function when the form is dirty that starts a timer. If the record is saved/undone, the timer stops and will start again when the form_dirty event fires again.
The problem is there are two controls that can be modified on the form that aren't firing the form_dirty event. One is a text box that I use the datepicker form to fill with a date. The other is a text box that I use a 'TimePicker' form I created to fill with a time. The TimePicker requires no functions (like the DatePicker).
Question: Is it because the textboxes are filled via code that the form_dirty event isn't firing? If so, what can I do? If not, what's the problem?
PS: I tried writing some code for the 'on_change' event of the textbox, in which I was going to determine if the form was dirty and, if so, nothing, but if not, fire the lockout function. The 'on_change' event isn't fired by changing the date info in the textbox. I think I also tried the on_dirty event of the textbox as well....
Thanks, in advance,
T
I've got a problem I can't figure out how to fix.
I use the Developer's Handbook code for form timeout, which basically calls a function when the form is dirty that starts a timer. If the record is saved/undone, the timer stops and will start again when the form_dirty event fires again.
The problem is there are two controls that can be modified on the form that aren't firing the form_dirty event. One is a text box that I use the datepicker form to fill with a date. The other is a text box that I use a 'TimePicker' form I created to fill with a time. The TimePicker requires no functions (like the DatePicker).
Question: Is it because the textboxes are filled via code that the form_dirty event isn't firing? If so, what can I do? If not, what's the problem?
PS: I tried writing some code for the 'on_change' event of the textbox, in which I was going to determine if the form was dirty and, if so, nothing, but if not, fire the lockout function. The 'on_change' event isn't fired by changing the date info in the textbox. I think I also tried the on_dirty event of the textbox as well....
Thanks, in advance,
T