G
Graham Stevenson
Hi,
I am trying to do an auto-save on user changes with various controls
on a number of tab pages.
The problem I have is that I am using the 'Leave' event for the tab to
trigger the save function.
What happens is that when I click on another part of the screen (ie
external to the tabs - its actually a TreeView), that part sends an
event to 'reload' the data in the tabs with the 'detail' for the newly
selected item, and this event comes in BEFORE the tab leaving event
!!. Hence my changes get 'lost'.
What is the best place to put auto-save code ???. I don't really want
every keystroke (ie textbox changed event etc.) to write to y
database. I have tried using the 'validating' events of the various
controls, but this seems to fire even later than the tab leave event
:-((.
It did seem to me that I should expect a 'tab leave' event immediately
the user clicks anywhere off the tab, but this is not so.
Thanks
Graham
I am trying to do an auto-save on user changes with various controls
on a number of tab pages.
The problem I have is that I am using the 'Leave' event for the tab to
trigger the save function.
What happens is that when I click on another part of the screen (ie
external to the tabs - its actually a TreeView), that part sends an
event to 'reload' the data in the tabs with the 'detail' for the newly
selected item, and this event comes in BEFORE the tab leaving event
!!. Hence my changes get 'lost'.
What is the best place to put auto-save code ???. I don't really want
every keystroke (ie textbox changed event etc.) to write to y
database. I have tried using the 'validating' events of the various
controls, but this seems to fire even later than the tab leave event
:-((.
It did seem to me that I should expect a 'tab leave' event immediately
the user clicks anywhere off the tab, but this is not so.
Thanks
Graham