I'm starting to work on a sticky issue. We have provided the following functionality in our apps. I'll illustrate with entry of Customer ID on, say, an order entry form.<br>
<br>
Sometimes the enterer knows the ID and is a speed keyer. We provide a text box for that. Frequently the enterer knows only the name. We position another text box (actually a custom control we built) for name beside the one for ID. Our custom control contains a drop down combo and a command button. We have built in "autofill" in the combo. The command button produces a custom search screen.<br>
<br>
When either control is "exited" we fill in the other, then also fill in the default ship-to ID for that customer.<br>
<br>
Our problem is this. There are circumstances one of these controls is exited and we don't "catch" it. Like clicking on a menu item, or on our tool bar. Lost focus doesn't fire because the orig control still has focus. It looks like validate is not the answer since the above don't expose a "causes validation" property. Any other approach we can think of would involve tedious state flags which could be really difficult to maintain.<br>
<br>
Any suggestions would be greatly appreciated.<br>
<p>John Kisner<br><a href=mailto:jlkisner@jlkisner.com>jlkisner@jlkisner.com</a><br><a href= > </a><br>
<br>
Sometimes the enterer knows the ID and is a speed keyer. We provide a text box for that. Frequently the enterer knows only the name. We position another text box (actually a custom control we built) for name beside the one for ID. Our custom control contains a drop down combo and a command button. We have built in "autofill" in the combo. The command button produces a custom search screen.<br>
<br>
When either control is "exited" we fill in the other, then also fill in the default ship-to ID for that customer.<br>
<br>
Our problem is this. There are circumstances one of these controls is exited and we don't "catch" it. Like clicking on a menu item, or on our tool bar. Lost focus doesn't fire because the orig control still has focus. It looks like validate is not the answer since the above don't expose a "causes validation" property. Any other approach we can think of would involve tedious state flags which could be really difficult to maintain.<br>
<br>
Any suggestions would be greatly appreciated.<br>
<p>John Kisner<br><a href=mailto:jlkisner@jlkisner.com>jlkisner@jlkisner.com</a><br><a href= > </a><br>