Click here to Skip to main content
15,885,365 members
Articles / Programming Languages / C#

The most complete C# Webbrowser wrapper control

Rate me:
Please Sign up or sign in to vote.
4.90/5 (141 votes)
28 May 2007CPOL21 min read 3M   40K   511  
A C# (.NET 2.0) control which creates, hosts, and offers advanced customization such as dragdrop, file downloads, HTTP/S header viewing, and much more.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title></title>

<script language="javascript" type="text/javascript">
<!--

function Button1_onclick() {
    window.external.SaySomething ();
}
function Button2_onclick() {
    window.external.AMessageFromHome = "A message from HTML page.";
}

function Button3_onclick() {
    alert (window.external.AMessageFromHome);
}

-->
</script>
</head><body><p>
        <input id="Button1" type="button" value="Invoke SaySomething method" onclick="return Button1_onclick()">
</P><p>
        <br>
        <input id="Button3" type="button" value="Show me a message from control." onclick="return Button3_onclick()">
</P><p>
        <br>
        <input id="Button2" type="button" value="Try to change something!" onclick="return Button2_onclick()"><br>
</P></body></html>

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
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions