Probe tu codigo en VS 2010 express y va bien
Código C++:
Ver originalusing 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 WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
this.webBrowser1.CanGoBackChanged += new System.EventHandler(this.webBrowser1_CanGoBackChanged);
}
private void button1_Click(object sender, EventArgs e)
{
webBrowser1.GoBack();
}
private void button2_Click(object sender, EventArgs e)
{
webBrowser1.Navigate(new Uri("http://www.google.com"));
}
private void webBrowser1_CanGoBackChanged(object sender, EventArgs e)
{
button1.Enabled = webBrowser1.CanGoBack;
}
}
}
Saludos