Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,555 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,909 people online right now. Registration is fast and FREE... Join Now!




Submitting a Web Form

 
Reply to this topicStart new topic

Submitting a Web Form

KoA
2 Apr, 2008 - 10:09 PM
Post #1

New D.I.C Head
*

Joined: 2 Apr, 2008
Posts: 2

Hi,

I'm trying to submit a webform. The page I Am trying to submit has two different submit buttons on it - One for the search - One for the main page.

CODE
WebBrowser1.Document.Forms(0).Submit


Using that code, Visual Basic submits the search form rather then the other button I am trying to submit
How would I go along submitting that other form?
Thanks


User is offlineProfile CardPM
+Quote Post

PsychoCoder
RE: Submitting A Web Form
2 Apr, 2008 - 10:12 PM
Post #2

using DIC.Core;
Group Icon

Joined: 26 Jul, 2007
Posts: 8,997



Thanked: 125 times
Dream Kudos: 8625
Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, Boo.Net

My Contributions
Well if index 0 (zero) submits the first form, then index 1 should submit the 2nd form


vb

'Submit the 2nd form on the page
WebBrowser1.Document.Forms(1).Submit

User is online!Profile CardPM
+Quote Post

KoA
RE: Submitting A Web Form
2 Apr, 2008 - 10:28 PM
Post #3

New D.I.C Head
*

Joined: 2 Apr, 2008
Posts: 2

Hi,

QUOTE
"RunTime Error 91"

"Object Variable or With Block variable not set"

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 11:19PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month