Closed kennethlou closed 2 years ago
@kennethlou I am not sure there is an easy way the way we are setup, but if you can get your hands dirty there might be a way. Others can help too.
The first thing I would do is to identify the browser process and shut it down (in a timer, perhaps) to see what happens. You can identify the browser process by using -
var proctype = ClientAppUtils.GetProcessType(args);
if (proctype == ProcessType.Browser)
{
Process currentProcess = Process.GetCurrentProcess();
}
You can put the code before "line 33".
Hi,
Do you know how to close the browser via a custom made button? i.e. at the line 33 in main:
line 33 AppBuilder.Create().UseConfig(config).UseApp().Build().Run(args);
line 34 int test = 1;
the browser is created in front of the user. Is there any way to have a button with a small piece of code to close it then line 34 will be run?
I am not looking for Application Exit as it will kill the whole process. I just want to close the browser.
Regards,