Fix some settings on WebControl implementation.

This commit is contained in:
Adam Ierymenko 2015-05-08 14:51:24 -07:00
parent 257187a284
commit c1e5c1c710
2 changed files with 1 additions and 6 deletions

View File

@ -35,18 +35,13 @@
// webContainer
//
this.webContainer.AllowNavigation = false;
this.webContainer.AllowWebBrowserDrop = false;
this.webContainer.Dock = System.Windows.Forms.DockStyle.Fill;
this.webContainer.IsWebBrowserContextMenuEnabled = false;
this.webContainer.Location = new System.Drawing.Point(0, 0);
this.webContainer.MinimumSize = new System.Drawing.Size(20, 20);
this.webContainer.Name = "webContainer";
this.webContainer.ScriptErrorsSuppressed = true;
this.webContainer.ScrollBarsEnabled = false;
this.webContainer.Size = new System.Drawing.Size(1012, 556);
this.webContainer.TabIndex = 0;
this.webContainer.Url = new System.Uri("", System.UriKind.Relative);
this.webContainer.WebBrowserShortcutsEnabled = false;
//
// Form1
//

View File

@ -62,7 +62,7 @@ namespace WebUIWrapper
this.Close();
return;
}
webContainer.Url = new System.Uri("http://127.0.0.1:" + port.ToString() + "/index.html?authToken=" + authToken);
webContainer.Navigate("http://127.0.0.1:" + port.ToString() + "/index.html?authToken=" + authToken);
}
catch
{