Click here to Skip to main content
15,895,871 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.8K   1.6K   21  
An implementation of a web browser control for the .NET Framework 1.1.
using System;

namespace Pajocomo.Windows.Forms
{
    /// <summary>
    /// The possible errors returned by the <see cref="NavigateErrorEventArgs.StatusCode"/> parameter of the <see cref="WebBrowserControl.NavigateError"/> event.
    /// </summary>
    public enum NavigateErrorStatus : int
    {
        /// <summary>
        /// Invalid syntax.
        /// </summary>
        HTTP_STATUS_BAD_REQUEST = 400,
        /// <summary>
        /// Access denied.
        /// </summary>
        HTTP_STATUS_DENIED = 401,
        /// <summary>
        /// Payment required.
        /// </summary>
        HTTP_STATUS_PAYMENT_REQ = 402,
        /// <summary>
        /// Request forbidden.
        /// </summary>
        HTTP_STATUS_FORBIDDEN = 403,
        /// <summary>
        /// Object not found.
        /// </summary>
        HTTP_STATUS_NOT_FOUND = 404,
        /// <summary>
        /// Method is not allowed.
        /// </summary>
        HTTP_STATUS_BAD_METHOD = 405,
        /// <summary>
        /// No response acceptable to client found.
        /// </summary>
        HTTP_STATUS_NONE_ACCEPTABLE = 406,
        /// <summary>
        /// Proxy authentication required.
        /// </summary>
        HTTP_STATUS_PROXY_AUTH_REQ = 407,
        /// <summary>
        /// Server timed out waiting for request.
        /// </summary>
        HTTP_STATUS_REQUEST_TIMEOUT = 408,
        /// <summary>
        /// User should resubmit with more info.
        /// </summary>
        HTTP_STATUS_CONFLICT = 409,
        /// <summary>
        /// Resource is no longer available.
        /// </summary>
        HTTP_STATUS_GONE = 410,
        /// <summary>
        /// Server refused to accept request without a length.
        /// </summary>
        HTTP_STATUS_LENGTH_REQUIRED = 411,
        /// <summary>
        /// Precondition given in request failed.
        /// </summary>
        HTTP_STATUS_PRECOND_FAILED = 412,
        /// <summary>
        /// Request entity was too large.
        /// </summary>
        HTTP_STATUS_REQUEST_TOO_LARGE = 413,
        /// <summary>
        /// Request Uniform Resource Identifier = unchecked((int)(URI) too long.
        /// </summary>
        HTTP_STATUS_URI_TOO_LONG = 414,
        /// <summary>
        /// Unsupported media type.
        /// </summary>
        HTTP_STATUS_UNSUPPORTED_MEDIA = 415,
        /// <summary>
        /// Retry after doing the appropriate action.
        /// </summary>
        HTTP_STATUS_RETRY_WITH = 449,
        /// <summary>
        /// Internal server error.
        /// </summary>
        HTTP_STATUS_SERVER_ERROR = 500,
        /// <summary>
        /// Server does not support the functionality required to fulfill the request.
        /// </summary>
        HTTP_STATUS_NOT_SUPPORTED = 501,
        /// <summary>
        /// Error response received from gateway.
        /// </summary>
        HTTP_STATUS_BAD_GATEWAY = 502,
        /// <summary>
        /// Temporarily overloaded.
        /// </summary>
        HTTP_STATUS_SERVICE_UNAVAIL = 503,
        /// <summary>
        /// Timed out waiting for gateway.
        /// </summary>
        HTTP_STATUS_GATEWAY_TIMEOUT = 504,
        /// <summary>
        /// HTTP version not supported.
        /// </summary>
        HTTP_STATUS_VERSION_NOT_SUP = 505,
        /// <summary>
        /// URL string is not valid.
        /// </summary>
        INET_E_INVALID_URL = unchecked((int)(0x800C0002)),
        /// <summary>
        /// No session found.
        /// </summary>
        INET_E_NO_SESSION = unchecked((int)(0x800C0003)),
        /// <summary>
        /// Unable to connect to server.
        /// </summary>
        INET_E_CANNOT_CONNECT = unchecked((int)(0x800C0004)),
        /// <summary>
        /// Requested resource is not found.
        /// </summary>
        INET_E_RESOURCE_NOT_FOUND = unchecked((int)(0x800C0005)),
        /// <summary>
        /// Requested object is not found.
        /// </summary>
        INET_E_OBJECT_NOT_FOUND = unchecked((int)(0x800C0006)),
        /// <summary>
        /// Requested data is not available.
        /// </summary>
        INET_E_DATA_NOT_AVAILABLE = unchecked((int)(0x800C0007)),
        /// <summary>
        /// Failure occurred during download.
        /// </summary>
        INET_E_DOWNLOAD_FAILURE = unchecked((int)(0x800C0008)),
        /// <summary>
        /// Requested navigation requires authentication.
        /// </summary>
        INET_E_AUTHENTICATION_REQUIRED = unchecked((int)(0x800C0009)),
        /// <summary>
        /// Required media not available or valid.
        /// </summary>
        INET_E_NO_VALID_MEDIA = unchecked((int)(0x800C000A)),
        /// <summary>
        /// Connection timed out.
        /// </summary>
        INET_E_CONNECTION_TIMEOUT = unchecked((int)(0x800C000B)),
        /// <summary>
        /// Request is invalid.
        /// </summary>
        INET_E_INVALID_REQUEST = unchecked((int)(0x800C000C)),
        /// <summary>
        /// Protocol is not recognized.
        /// </summary>
        INET_E_UNKNOWN_PROTOCOL = unchecked((int)(0x800C000D)),
        /// <summary>
        /// Navigation request has encountered a security issue.
        /// </summary>
        INET_E_SECURITY_PROBLEM = unchecked((int)(0x800C000E)),
        /// <summary>
        /// Unable to load data from the server.
        /// </summary>
        INET_E_CANNOT_LOAD_DATA = unchecked((int)(0x800C000F)),
        /// <summary>
        /// Unable to create an instance of the object.
        /// </summary>
        INET_E_CANNOT_INSTANTIATE_OBJECT = unchecked((int)(0x800C0010)),
        /// <summary>
        /// Attempt to redirect the navigation failed.
        /// </summary>
        INET_E_REDIRECT_FAILED = unchecked((int)(0x800C0014)),
        /// <summary>
        /// Navigation redirected to a directory.
        /// </summary>
        INET_E_REDIRECT_TO_DIR = unchecked((int)(0x800C0015)),
        /// <summary>
        /// Unable to lock request with the server.
        /// </summary>
        INET_E_CANNOT_LOCK_REQUEST = unchecked((int)(0x800C0016)),
        /// <summary>
        /// Reissue request with extended binding.
        /// </summary>
        INET_E_USE_EXTEND_BINDING = unchecked((int)(0x800C0017)),
        /// <summary>
        /// Binding is terminated.
        /// </summary>
        INET_E_TERMINATED_BIND = unchecked((int)(0x800C0018)),
        /// <summary>
        /// Permission to download is declined.
        /// </summary>
        INET_E_CODE_DOWNLOAD_DECLINED = unchecked((int)(0x800C0100)),
        /// <summary>
        /// Result is dispatched.
        /// </summary>
        INET_E_RESULT_DISPATCHED = unchecked((int)(0x800C0200)),
        /// <summary>
        /// Cannot replace a protected System File Protection = unchecked((int)(SFP) file.
        /// </summary>
        INET_E_CANNOT_REPLACE_SFP_FILE = unchecked((int)(0x800C0300))
    }
}

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