Published
- 1 min read
load webpage without crashing C#
The solution for this is noted below
load webpage without crashing C#
Solution
public void LoadDocument(string html, string link)
{
string html = "<html><head>";
html += "<meta content='IE=Edge' http-equiv='X-UA-Compatible'/>\n" +
"\n<body>" +
"<iframe id='video' src='{0}' width='600' height='600' frameborder='0'></iframe>\n" +
"</body>";
webBrowser1.DocumentText = string.Format(html, link);
}
Try other methods by searching on the site. That is if this doesn’t work