一个小浏览器的代码,高手来帮看看那里错了
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace 浏览器
{
public partial class Form1 : System.Windows.Forms.Form
{
public Form1()
{
InitializeComponent();
}
static void Main()
{
Application.Run(new Form1());
}
private void button6_Click(object sender, EventArgs e)
{
if (textBox1.Text.Length < 1)
return;
try
{
string Strvr1 = textBox1.Text;
System.Object MyObject = " ";
axWebBrowser1.Navigate(Strvr1, ref MyObject, ref MyObject, ref MyObject, ref MyObject);
}
catch(Exception Err)
{
MessageBox.Show(Err.Message, "信息提示 ",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
}
private void button1_Click(object sender, EventArgs e)
{
try
{
axWebBrowser1.GoBack();
}