Tomaz,
I would attach to the WebBrowserNavig ating event and cancel the event
before the click takes place. In the event handler, the
WebBrowserNavig atingEventArgs passed in contains the URL navigated to, in
the Url property.
You might also have to have a flag that is set when you call Navigate
from your treeview being picked. If the flag is set, you don't want to
cancel the navigation (since the event will be fired when you call
Navigate).
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard. caspershouse.co m
"Tomaz Canabrava" <Tomaz
Ca*******@discu ssions.microsof t.com> wrote in
message news:B6******** *************** ***********@mic rosoft.com...
kay, here it`s my problem. i have a TreeView and a WebBroswer, when i
choose
something on the treeview, the program generates an html, and it is showed
on
the webbroswer, but the html has links to other classes that are displayed
on
the treeview. How can i "cath" the link clicked event to choose how will
be
the next webpage generated by my program?
It's just client side, has no servers at all.