diff --git a/PROMS/Volian.Controls.Library/WebBrowser.Designer.cs b/PROMS/Volian.Controls.Library/WebBrowser.Designer.cs new file mode 100644 index 00000000..71620404 --- /dev/null +++ b/PROMS/Volian.Controls.Library/WebBrowser.Designer.cs @@ -0,0 +1,63 @@ +namespace Volian.Controls.Library +{ + partial class WebBrowser + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.WebBrowserWindow = new System.Windows.Forms.WebBrowser(); + this.SuspendLayout(); + // + // WebBrowserWindow + // + this.WebBrowserWindow.Dock = System.Windows.Forms.DockStyle.Fill; + this.WebBrowserWindow.Location = new System.Drawing.Point(0, 0); + this.WebBrowserWindow.MinimumSize = new System.Drawing.Size(20, 20); + this.WebBrowserWindow.Name = "WebBrowserWindow"; + this.WebBrowserWindow.Size = new System.Drawing.Size(1039, 723); + this.WebBrowserWindow.TabIndex = 0; + //this.WebBrowserWindow.Url = new System.Uri("http://www.volian.com", System.UriKind.Absolute); + //this.WebBrowserWindow.Url = new System.Uri(_currentURL, System.UriKind.Absolute); + //this.WebBrowserWindow.Navigate(_currentURL); + // + // WebBrowser + // + this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1039, 723); + this.Controls.Add(this.WebBrowserWindow); + this.Name = "WebBrowser"; + this.ShowIcon = false; + this.Text = "WebBrowser"; + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.WebBrowser WebBrowserWindow; + } +} \ No newline at end of file diff --git a/PROMS/Volian.Controls.Library/WebBrowser.cs b/PROMS/Volian.Controls.Library/WebBrowser.cs new file mode 100644 index 00000000..6f9ccf67 --- /dev/null +++ b/PROMS/Volian.Controls.Library/WebBrowser.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Text; +using System.Windows.Forms; + +namespace Volian.Controls.Library +{ + public partial class WebBrowser : DevComponents.DotNetBar.Office2007Form //Form + { + private string _currentURL = @"http:/www.volian.com"; // default to volain web site + + /// + /// Display an instance of the default internet web browser. + /// Note that besides a web site address, you can pass in a PDF file name (include the path). + /// This assumes that the user's web browser can display PDF files. + /// If nothing is passed in, then this will default to displaying the Volian Web Site. + /// + /// The URL of the web site you want to display + public WebBrowser(string url) + { + _currentURL = url; + //this.Text = url; + InitializeComponent(); + this.WebBrowserWindow.Navigate(_currentURL); + this.TitleText = _currentURL; + } + public WebBrowser() + { + InitializeComponent(); + this.WebBrowserWindow.Navigate(_currentURL); + this.TitleText = _currentURL; + } + + } +} \ No newline at end of file diff --git a/PROMS/Volian.Controls.Library/WebBrowser.resx b/PROMS/Volian.Controls.Library/WebBrowser.resx new file mode 100644 index 00000000..19dc0dd8 --- /dev/null +++ b/PROMS/Volian.Controls.Library/WebBrowser.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file