Recently, I put together C# and webview2 mix , to access some web pages from a c# program, and the end results were quite nice; a working c#/webview2 webpage window. It was just a simple, barebones approach. And it did not return any errors. But the problems came when I exited out of the webview2 window under the C# procedure and returned control back to the calling form/procedure_call. When the calling control was returned, the current form was overlayed by the webview2 webpage window - it was still waiting to be used - it didn't delete! There was nothing that could be done to terminate the window inside, so the process had to be manually terminated. What else needs to be done to exit out of the webview2 window seemlessly? It's just a simple approach, and I am not well versed in webview2 tools. What else do I need to incorporate into the c#/webview2 program to make it work the way I want it to be? Any help sure would be Great! Thanks in advance.
I'm using MSVC 2017.