Method to disable browser from template

  • Автор темы Автор темы lokiys
  • Дата начала Дата начала

lokiys

Moderator
Регистрация
01.02.2012
Сообщения
4 922
Реакции
1 206
Баллы
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
 
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...
 
You may disable content in browser:
Код:
Развернуть Свернуть Копировать
instance.UseBrowserWithoutContent = true;
instance.CloseAllTabs();
 
  • Оценить
Реакции: arhip1985

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