Method to disable browser from template

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 812
Благодарностей
1 187
Баллы
113
Would be good if we could disable browser in middle of template.

For example I have task where i need browser and other half could work without browser. Then we could disable browser to save resources.

Now I'm using method tab.Close(); but it seems does not close anything, It just makes tab as about:blank and that's all. Tab is still opened.

Thanks
 

Nick

Client
Регистрация
22.07.2014
Сообщения
1 983
Благодарностей
817
Баллы
113
I think that as browser object is initialized on startup it can't be disposed somewhere in the middle, at least I've never heard of such a feature. Try workarounds like calling a non-browser sub-project or other tricks...
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 453
Благодарностей
5 912
Баллы
113
You may disable content in browser:
Код:
instance.UseBrowserWithoutContent = true;
instance.CloseAllTabs();
 
  • Спасибо
Реакции: arhip1985

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)