How to load mht from stream/string into a WebBrowser control?

前端 未结 3 1216
太阳男子
太阳男子 2020-12-19 20:46

The WebBrowser control loads properly any mht file if I use the Navigate method, but when I use the DocumentText or DocumentStre

3条回答
  •  我在风中等你
    2020-12-19 20:58

    var uri = new Uri(String.Format("file:///{0}", Path.GetFullPath(source)));
    wbMain.Navigate(uri);
    

    where source - path to your .mht file

提交回复
热议问题