Posted by a small bot, which follows the links. Added the ability to collapse to tray, so as not to interfere. So, when the application is in the tray and makes a click, the focus is removed from other windows, it causes discomfort. I sit, for example, in the browser, I type something, and then bang - the focus is removed from the browser and you need to click again on the text field. If you simply minimize the application, then this does not happen. Is there a way to get rid of it?
A click is done as follows: element.InvokeMember("Click");
Enabled = false;and at theDocumentCompletedevent, back toEnabled = true;. - AntiFreez