Question on WebBrowser control


D

Dom

In the webbrowser control, is there any reason why I can't see the
"CanGoBackChanged" event in the properties box? How do I capture the
event?

Dom
 
Ad

Advertisements

M

Marc Gravell

You can't see it because it is marked [Browsable(false)] - however, you
should be able to subscribe manually - for instance in your constructer
(after InitializeComponent if you are using the designer):

webBrowser1.CanGoBackChanged += webBrowser1_CanGoBackChanged;

with:

void webBrowser1_CanGoBackChanged(object sender, EventArgs e)
{
// todo...
}

Marc
 
D

Dom

You can't see it because it is marked [Browsable(false)] - however, you
should be able to subscribe manually - for instance in your constructer
(after InitializeComponent if you are using the designer):

     webBrowser1.CanGoBackChanged += webBrowser1_CanGoBackChanged;

with:

     void webBrowser1_CanGoBackChanged(object sender, EventArgs e)
     {
         // todo...
     }

Marc

Thanks. It works now. Any idea why it is marked non-browsable?
 
Ad

Advertisements

M

Marc Gravell

Any idea why it is marked non-browsable?

Nope. I guess it might be an attempt to minimise confusion by
displaying only "common" events in the designer... there may be more
info on the symbol server...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top