Click here to Skip to main content
15,886,799 members
Articles / Programming Languages / C#

WebBrowserControl for the .NET Framework 1.1

Rate me:
Please Sign up or sign in to vote.
3.06/5 (11 votes)
15 Apr 2010CPOL2 min read 98.6K   1.6K   21  
An implementation of a web browser control for the .NET Framework 1.1.
namespace Pajocomo.Windows.Forms
{
    /// <summary>
    /// Represents the method that will handle the <see cref="WebBrowserControl.StatusTextChanged"/> event of the <see cref="WebBrowserControl"/>.
    /// </summary>
    /// <param name="sender">
    /// The source of the event.
    /// </param>
    /// <param name="e">
    /// A <see cref="StatusTextChangedEventArgs"/> that contains the event data. 
    /// </param>
    public delegate void StatusTextChangedEventHandler(object sender, StatusTextChangedEventArgs e);

    /// <summary>
    /// Provides data for the <see cref="WebBrowserControl.StatusTextChanged"/> event.
    /// </summary>
    public class StatusTextChangedEventArgs : System.EventArgs
    {

        #region Private Instance Fields

        private IWebBrowserObject webBrowser;
        private string statusText;

        #endregion

        #region Private Instance Constructors

        private StatusTextChangedEventArgs() {}

        #endregion

        #region Internal Instance Constructors

        /// <summary>
        /// Provides data for the <see cref="WebBrowserControl.StatusTextChanged"/> event.
        /// </summary>
        /// <param name="webBrowser">
        /// The <see cref="IWebBrowserObject"/> that represents the window or frame in which the title change occurred.
        /// </param>
        /// <param name="statusText">
        /// The new status bar text.
        /// </param>
        internal StatusTextChangedEventArgs(IWebBrowserObject webBrowser, string statusText) : base()
        {
            this.webBrowser = webBrowser;
            this.statusText = statusText;
        }

        #endregion

        #region Public Instance Properties

        /// <summary>
        /// Gets the <see cref="IWebBrowserObject"/> that represents the window or frame in which the status bar text change occurred.
        /// </summary>
        /// <value>
        /// The <see cref="IWebBrowserObject"/> that represents the window or frame in which the status bar text change occurred.
        /// </value>
        public IWebBrowserObject WebBrowser
        {
            get
            {
                return this.webBrowser;
            }
        }

        /// <summary>
        /// Gets the new status bar text.
        /// </summary>
        /// <value>
        /// The new status bar text.
        /// </value>
        public string StatusText
        {
            get
            {
                return this.statusText;
            }
        }

        #endregion

    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Paulo Morgado
Portugal Portugal

Comments and Discussions