Results 1 to 6 of 6

Thread: Please Help, Web browser control problems.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2006
    Posts
    91

    Please Help, Web browser control problems.

    I have my web browser control automatically filling out a series of online forms for me online, and when it is complete, it starts over again.

    I get through about 3 cycles of this, and then the webpage in the browser control goes to a "the page cannot be displayed" page.

    This totally screws up my program and makes it stop filling out the forms.

    im fairly new to programming, and i'm not sure how to fix this problem.


    what are some potential solutions?

    i've tried this code
    VB Code:
    1. If InStr(1, ssource, "You might not have permission") > 0 Then
    2.    
    3.  
    4.        
    5.         step = step - 1
    6.         Clipboard.SetText pasturl
    7.         WebBrowser1.Navigate pasturl
    8.  
    9.  
    10. End If

    but it doesnt seem to be working.

    any ideas would be awesome.

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Please Help, Web browser control problems.

    Does the page acutally exist that you are attempting to load?

  3. #3

  4. #4
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Please Help, Web browser control problems.

    Also, what is "step" and what is it used for (what are your intentions) and what is "pasturl"?

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Oct 2006
    Posts
    91

    Re: Please Help, Web browser control problems.

    okay... thanks for the responses

    ssource is the html code for the web page displayed in the browser.

    pasturl is the last url that was visited, it's basically another way of telling the browser to go back.

    and the code is divided into 5 steps... because there are five pages of forms to fill out... each step is code meant for another page.

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Oct 2006
    Posts
    91

    Re: Please Help, Web browser control problems.

    dont worry about it dudes, thanks anyways.

    found an alternative method

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width