I am using WebBrowser control on a WinForm. When my form is minimized the control throws an exception,
An outgoing call cannot be made since the application is dispatching
an input-synchronous call. (Exception from HRESULT: 0x8001010D
(RPC_E_CANTCALLOUT_ININPUTSYNCCALL))
I have stated windowstate as,
this.WindowState = FormWindowState.Minimized;
Does anyone aware of this issue ?
Thanks in advance,
Vijay
Where you want to modify UI from other thread use invoke method
suppose you want to hide a panel (named panel1) from other thread. Then your code will be