Hi,
i have found a solution:
1.: in IExtensionApplication.Initialize i add a event to Application.Idle += setIconState2
2. in the eventhandler remove himself after work
public void setIconState2(object sender, EventArgs e)
{
Boolean runIsOk = doAny();
if (runIsOk) Application.Idle -= setIconState2;
}
regards Mario