Home All Groups Group Topic Archive Search About

webbrowser control to submit form

Author
2 Jun 2006 11:29 PM
jasonhartsoe
I'm using Visual Studio 2005 Team Edition....using visual basic.  I'm
trying to use the webbrowser control.  In the webbrowser control I have
it got to a page where there is a form.  It waits for the page to
complete, then fills in the form.  Next I want it to submit the form or
after getting focus of the submit button, keys.enter.  I've tried
everything but without any luck...and the old codes,
webbrowser.forms(0).submit or .click etc no longer works.  Is there
some way possible to do this?  All I want to do is submit the form
within the webbrowser control...but with VB.net 2005 it's not
working...please help!

email: neth***@charter.net

thanks!

Author
3 Jun 2006 6:58 AM
Cor Ligthert [MVP]
Jason,

The webbrowser control is not to submit a form, as not any control does, but
to get a page.

For submitting (responding) you have to look in my idea more in the
HTTPresponse class.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpresponseclasstopic.asp

I  hope this helps,

Cor

<jasonhart***@gmail.com> schreef in bericht
Show quoteHide quote
news:1149290959.765893.45060@g10g2000cwb.googlegroups.com...
> I'm using Visual Studio 2005 Team Edition....using visual basic.  I'm
> trying to use the webbrowser control.  In the webbrowser control I have
> it got to a page where there is a form.  It waits for the page to
> complete, then fills in the form.  Next I want it to submit the form or
> after getting focus of the submit button, keys.enter.  I've tried
> everything but without any luck...and the old codes,
> webbrowser.forms(0).submit or .click etc no longer works.  Is there
> some way possible to do this?  All I want to do is submit the form
> within the webbrowser control...but with VB.net 2005 it's not
> working...please help!
>
> email: neth***@charter.net
>
> thanks!
>
Author
3 Jun 2006 4:51 PM
jasonhartsoe@gmail.com
i checked it out...but i'm not sure if it's what I'm needing...I am
wanting to call the submit button within the webbrowser control (the
form within that page) and submit it....i can insert text etc within
the form on the control...but I can't get it to submit or to call
Keys.enter...how could I go about doing that?
Cor Ligthert [MVP] wrote:
Show quoteHide quote
> Jason,
>
> The webbrowser control is not to submit a form, as not any control does, but
> to get a page.
>
> For submitting (responding) you have to look in my idea more in the
> HTTPresponse class.
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpresponseclasstopic.asp
>
> I  hope this helps,
>
> Cor
>
> <jasonhart***@gmail.com> schreef in bericht
> news:1149290959.765893.45060@g10g2000cwb.googlegroups.com...
> > I'm using Visual Studio 2005 Team Edition....using visual basic.  I'm
> > trying to use the webbrowser control.  In the webbrowser control I have
> > it got to a page where there is a form.  It waits for the page to
> > complete, then fills in the form.  Next I want it to submit the form or
> > after getting focus of the submit button, keys.enter.  I've tried
> > everything but without any luck...and the old codes,
> > webbrowser.forms(0).submit or .click etc no longer works.  Is there
> > some way possible to do this?  All I want to do is submit the form
> > within the webbrowser control...but with VB.net 2005 it's not
> > working...please help!
> >
> > email: neth***@charter.net
> >
> > thanks!
> >