This was driving me berserk, but I think I have isolated the cause of this behavior. But I don’t know what to do about it!
I have a template which immediately opens a form. The form automatically pulls contact info from Outlook and displays it in a list box. The user can then click a name and the info for that person appears in a preview.
However, more often than not, the listbox displays with a name already selected. (Screen shot below.) I was tearing my hair out until I realized that the name selected is one of two or three in the same place in the list and just happens to fall under where the cursor sat when I double-clicked the template! I tested by selecting the template, moving my cursor off to one side and pressing Enter to run the template. No pre-selection.
It really looks as if the cursor hovering over where the listbox appears is causing one of these entries to be initially selected. The cursor must be out of the way before the template starts; if you move it after it starts initializing, it still selects an item.
While I was relieved to discover (or so it seems) the cause of this annoyance, it really sucks in regard to the elegant design of the template…
I haven’t been able to think of anything to do programatically because the selection appears the moment the dialog is finished displaying (it takes about 4 seconds for the listbox to populate).
Is there anything I can do to keep it from happening in the first place? I can’t control how someone launches the template (no matter how hard I try…).
Any suggestions will be soooooo appreciated!
Thanks,
Kim