WebBrowser Control vb 2005

J

jdeportugal

I'm developing an application for the pocket pc 2003, and because of
the lack of any control that supports text format or html, I
considered the webbrowser control, and here is where the problems come
with trapping the onclick event in any of the links that appers in my
application.

I've looked everywhere and I have no results. Probably it's not
possible, what makes this control a little bit useless to make
applications embedded in this control.

Does any one have the same problem to trap or control webbrowser
events?

Thanks in advance.

Juan
 
P

Paul G. Tobey [eMVP]

It's actually not useless at all. You control the page contents, the
starting page, etc. Why do you need to know about each individual click?

Paul T.
 
J

juanforfun

I have the same problem, I want to trap the onclick event with a HTML
example like <a href="#cmd=exit">Exit</a>, but there are 2 problems:

1) The click does not fire any event
2) The navigating event can't catch the e.url properly.

Does anyone know how to control the events in the webbrowser with html
generated on fly with the documentText property?

I'm programming a web aplicattion in the webbrowser control which
gives me a lot of control about text formatting (instead of the flat
textbox)

Thanks a lot in advance.
 
P

Paul G. Tobey [eMVP]

If you want to exit, do that with JavaScript by closing the browser window.
I haven't done this on Windows Mobile's browser, but it works on the IE
browser in Windows CE with no problems.

Paul T.
 
J

juanforfun

Sorry, maybe I wasn't enought clear in my message.
What I want is to have full access to the user input, and execute
functions from jscript in the webcontrol to vb, I mean

<a href="#cmd=exit">Exit</a> should execute a function in vb called
exit() or
<a href="#cmd=next">Next Question</a> should execute a function in vb
called next_question()

The "cmd=exit" command will be in the url, so I could trap "cmd=exit"
and then "exit" and interpreted as a command. But the thing is, it
does not fire the navigating event, unless the url starts with http or
file, but I can only trap the url when the document is totally loaded
so I have to have a temporary html document. Would it perfect if I
could trap the url in the event navigating, but I can't.


The same example than in
http://groups.google.es/group/micro...?lnk=gst&q=html&rnum=3&hl=es#454dee9feb7eb78e

but in vb.

Hope I've been enough clear now.

Thank you very much

Juan
 

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