This is a simple Web Browser made by C#. It is simple to make web browser using C#. First of all, you have to add a ‘WebBrowser’ control to your form from C# Tool box.
Add one text box to enter the address of web site to load on your web browser.Then add three button to load, stop and refresh your page.
Program Code:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Test { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Load_Click(object sender, EventArgs e) { webBrowser1.Navigate(textBox1.Text); } private void Refresh_Click(object sender, EventArgs e) { webBrowser1.Refresh(); } private void stop_Click(object sender, EventArgs e) { webBrowser1.Stop(); } } } |
User Interface with Sample Output:
Subscribe To Get Articles On Your Inbox!
Labels:
C#
Previous Article


Responses
0 Respones to "C# Program to Create a Web Browser"
Post a Comment