Results 1 to 23 of 23

Thread: Wath is the control to use to surf the web?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    20

    Wath is the control to use to surf the web?

    Hi, wath is the control to use to surf the web and make a submit in a website? Thank you very much

  2. #2
    Fanatic Member VBCrazyCoder's Avatar
    Join Date
    Apr 2003
    Posts
    681
    You post is a bit unclear. What do you mean - a submit button?

  3. #3
    Hyperactive Member spoiledkid's Avatar
    Join Date
    Oct 2002
    Location
    Canada
    Posts
    437
    A bit ?

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    you are probably after the webbrowser control, which is a com component.. I dont think they have anything ported over as a .net assembly for IE yet...

    as for the submit button.. im with the guys that posted above me that I don't know what you are talking about

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    20
    i want to access in a home page wich have a login and password and press the submit button

  6. #6
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    I understand if you don't speak/write english very well, but it is very hard to understand what you are really after.

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    20
    sorry:
    i want to go to a website and with my application i want to insert in the login_form my username and password automatically evary 15 minutes....which control should i use? Thank you

  8. #8
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    use the webbrowser control, if you go into references in your .net application, you need to select it from the COM tab, and it should be called "Microsoft Internet Controls"

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    20
    thank you very much, but how can i use this control to put the data into the text field of the web site?

  10. #10
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    Originally posted by Frenzi85
    thank you very much, but how can i use this control to put the data into the text field of the web site?

    i can't do it right now because i am busy... but if you don't figure it out, I will try to post you an example app later on today

  11. #11

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    20
    thank you very much you are the best

  12. #12
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    this example will show you how to fill in fields in an html form that is loaded into the webbrowser control on a windows form

    it then submits the html form

    since its just an example, it doesnt really submit any data, but navigates to microsoft.com, but will give you the knowledge to implement it how you need it in your own app.
    Attached Files Attached Files
    Last edited by kleinma; Oct 28th, 2004 at 08:14 AM.

  13. #13

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    20
    thank you very much...but how can i automatically press the button to send the data by my application??

  14. #14

    Thread Starter
    Junior Member
    Join Date
    Oct 2004
    Posts
    20
    oops...sorry for the stupid question...thank you again...!!!

  15. #15
    New Member
    Join Date
    Sep 2006
    Posts
    2

    Re: Wath is the control to use to surf the web?

    Hi Kleinma,

    I tried to modify the code you have posted here and migrate it to vb2005, but i get an error when i run it.

    The error is: NullreferenceException was unhandled.

    VB Code:
    1. Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    2.         webBrowser.Navigate("http://www.simpleclient.com/index.php")
    3.     End Sub
    4.  
    5.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    6.         webBrowser.Document.forms.item(, 0).elements("username").value = txtField1.Text
    7.         webBrowser.Document.forms.item(, 0).elements("passwd").value = txtField2.Text
    8.         webBrowser.Document.forms.item(, 0).submit()
    9.     End Sub
    10.  
    11.     Private Sub Form1_Closed(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Closed
    12.         webBrowser = Nothing
    13.     End Sub

    Can you help me with this one.

    What I am trying to do is to login on my website using vb.net. Many Thanks for the help.

  16. #16
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Wath is the control to use to surf the web?

    look at my signature.. there is a link to a better example I made to manipulate webpages... it was built using 2005

  17. #17
    New Member
    Join Date
    Sep 2006
    Posts
    2

    Re: Wath is the control to use to surf the web?

    Many Thanks, This will help me a lot.

  18. #18
    New Member
    Join Date
    Apr 2007
    Posts
    4

    Resolved Re: Wath is the control to use to surf the web?

    Hi Kleinma,

    Nice example to automate forms. It works fine and helps you to start getting around with webcontrol and forms. Just a quick question. After submiting a form, how do I get the current URL of webbrowser control ? I mean, when I try "curURL = webbrowser.url.ToString" my VB 2005 says url is a not a member of axsHDoc...." so I can't get the current url into a variable and take a decision based on what url my browser is.

    Thanks for any light on this.

    Mauver

  19. #19
    New Member
    Join Date
    Apr 2007
    Posts
    4

    Re: Wath is the control to use to surf the web?

    Anyone can help ? Thanks in advance.

  20. #20
    Junior Member
    Join Date
    Jul 2007
    Posts
    23

    Re: Wath is the control to use to surf the web?

    im just wondering if it can apply it in visual basic 6, anyone can help me converting the example in vb6?

  21. #21
    Hyperactive Member
    Join Date
    Dec 2004
    Posts
    326

    Re: Wath is the control to use to surf the web?

    Please don't Hijack threads Or pull up old threads. If you need help start a new one.

  22. #22
    New Member
    Join Date
    Nov 2007
    Location
    Northern NSW Australia
    Posts
    1

    Re: Wath is the control to use to surf the web?

    okay i logged in because i couldnt find out how to fill/submit a form with the web browser object and u guys came the closest, navigate to the target of the form and thats where the form gets submitted.

  23. #23
    New Member
    Join Date
    Aug 2012
    Location
    Atlanta
    Posts
    2

    Re: Wath is the control to use to surf the web?

    You guys are great. I am relatively new to .NET programming and can always find what I am looking for here. A+ for all efforts and information. Thanks again and again.

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