Share via

WebView2 - Block Windows Network Diagnostics window from launching

Anonymous
2022-06-08T11:52:26+00:00

In my WPF application with WebView2 control, it is required that any interaction (like clicking links) inside the page does not launch any external windows (i.e. any windows that is not part of the application).

In case a page the WebView2 is loading is not accessible or a timeout occurs, ERR_TIMED_OUT page is displayed with a link to run Windows Network Diagnostics as shown below.

Is there a way to prevent WebView2 from launching the Windows Network Diagnostics window?

Microsoft Edge | Other | Windows 10

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. DaveM121 891.1K Reputation points Independent Advisor
    2022-06-08T13:32:57+00:00

    Hi Steve,

    I am Dave, I will help you with this.

    I apologize, Community is just a consumer forum, due to the scope of your question (WPF Dev) can you please post this question to our sister forum on Microsoft Q&A (The Developer Forum) in the WPF section (linked below)

    Over there you will have access to a host of WPF Developers and WebView2 experts and will get a knowledgeable and quick answer to this question.

    https://docs.microsoft.com/en-us/answers/topics...

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments