Simple web browser in c#

Sunday, March 10, 2013








Pretty Simple no need to code bundle of lines for it, Just Drag n Drop Here all Done...

Lets Start

Create New project

      


Second Step is to Select Button From Tollbar





Third Step is to Drag TextField from ToolBar





Fourth Step is to drag Web Control From Toolbar






Next Step is Code .Cs file for in click event of Button, Double click on the Button and place these lines of code there


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 Web_Broweser_tut
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            webBrowser1.Navigate(textBox1.Text);
        }
    }
}



No comments:

Post a Comment

 

Most Reading