C
cbnewman
All,
I am trying to use a generic search button for one of my forms. I
would like the user to be able to enter search information into one of
several fields (name, medical record number, location, etc) and have a
single search button (the way I have it implemented right now has a
separate button for each searchable field).
I tried using activecontrol, but as soon as the user clicks on the
button, the focus changes to the button. What's the best way to figure
out where the focus was immediately prior to the button click? Does
each control have a "dirty" property? I could at least iterate through
the searchable controls and generate a filter string if one of them
changed, i suppose, but I'm looking for a more elegant solution.
Thanks,
--b
I am trying to use a generic search button for one of my forms. I
would like the user to be able to enter search information into one of
several fields (name, medical record number, location, etc) and have a
single search button (the way I have it implemented right now has a
separate button for each searchable field).
I tried using activecontrol, but as soon as the user clicks on the
button, the focus changes to the button. What's the best way to figure
out where the focus was immediately prior to the button click? Does
each control have a "dirty" property? I could at least iterate through
the searchable controls and generate a filter string if one of them
changed, i suppose, but I'm looking for a more elegant solution.
Thanks,
--b