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; } } }