How to make Browser in visual studio C#?
C# Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Dark_browser
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.GoBack();
}
private void button3_Click(object sender, EventArgs e)
{
webBrowser1.GoForward();
}
private void button2_Click(object sender, EventArgs e)
{
webBrowser1.Refresh();
}
private void button4_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("rotegames-2.easy.co");
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
webBrowser1.Navigate(textBox1.Text);
}
private void button4_Click_1(object sender, EventArgs e)
{
webBrowser1.Navigate("www.bing.com/");
}
private void button5_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("www.google.com/");
}
private void button6_Click(object sender, EventArgs e)
{
webBrowser1.Navigate("rotegames-2.easy.co/");
}
private void button6_Click_1(object sender, EventArgs e)
{
webBrowser1.Navigate("tw.search.yahoo.com/");
}
private void button6_Click_2(object sender, EventArgs e)
{
webBrowser1.Navigate("www.baidu.com/")
}
}
}
留言
張貼留言
留言...