Browse Source

Fix some settings on WebControl implementation.

Adam Ierymenko 10 years ago
parent
commit
c1e5c1c710
2 changed files with 1 additions and 6 deletions
  1. 0 5
      windows/WebUIWrapper/Form1.Designer.cs
  2. 1 1
      windows/WebUIWrapper/Form1.cs

+ 0 - 5
windows/WebUIWrapper/Form1.Designer.cs

@@ -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
             // 

+ 1 - 1
windows/WebUIWrapper/Form1.cs

@@ -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
             {