How can I view a specific chm help file topic in an edge browser (inside a WebView2 control)

Jim Ward 6 Reputation points
2022-01-06T11:34:36.667+00:00

I am converting a VB.Net Winforms application that targets .Net framework 4.8 using WebBrowser controls to use WebView2 controls

The Winforms application has a chm help file which is installed with the application and in the IE/WebBrowser world I can view a specific context sensitive help topic using the ms-its protocol

e.g. ms-its:C:/Program%20Files%20(x86)/Smart%20Communications%20Client%2026.0.0.1/SmartCommunications.chm::/BCSDocumentIntro.htm

This doesn't work with Edge/WebView2 and I get the message

Failed to launch 'ms-its:C:/Program%20Files%20(x86)/Smart%20Communications%20Client%2026.0.0.1/SmartCommunications.chm::/BCSDocumentIntro.htm' because the scheme does not have a registered handler.

How can I view a specific chm help file topic in an edge browser within a chm file (with navigation to previous, next and linked topics working)?

Microsoft Edge Microsoft Edge development
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.