This project is read-only.

SelectionItemPattern timout

Dec 9, 2010 at 4:55 AM

Hi all,

I need to handle the timeout exception when select the item in the listbox, now after the select it will pop up a dialog, but the select() action doesn't end, so it will throw timeout exception, and i can't do the dialog handling, the code like this:


selPattern = (SelectionItemPattern)sectorListItem.GetCurrentPattern(SelectionItemPattern.Pattern);

selPattern.Select(); (Fail here,  timeout exception)

dialog = currentWindow.FindFirst(...) 


Who can provide a solution to handle this? Many thanks.