Results 1 to 4 of 4

Thread: Webbrowser post

  1. #1

    Thread Starter
    Addicted Member jeroen_12's Avatar
    Join Date
    Jul 2005
    Posts
    152

    Webbrowser post

    hi guys i need help with webbrowser

    i have this site www.testnaam.MYGB.nl

    i want to post something there using VB how can i do ? for sample

    i have 3 text boxes

    Name
    E-mail
    Message

    any one has idea?

    thanks in advance


  2. #2
    Frenzied Member wiz126's Avatar
    Join Date
    Jul 2005
    Location
    Mars,Milky Way... Chit Chat Posts: 5,733
    Posts
    1,080

    Re: Webbrowser post

    Sure,

    VB Code:
    1. Private Sub Command1_Click()
    2.     WebBrowser1.Document.All.submit.Click
    3. End Sub
    4.  
    5. Private Sub Form_Load()
    6.     WebBrowser1.Navigate "http://www.testnaam.mygb.nl/"
    7. End Sub
    8.  
    9. Private Sub Text1_Change()
    10.     WebBrowser1.Document.Form.Name.Value = Text1.Text
    11. End Sub
    12.  
    13. Private Sub Text2_Change()
    14.     WebBrowser1.Document.Form.email.Value = Text2.Text
    15. End Sub
    16.  
    17. Private Sub Text3_Change()
    18.     WebBrowser1.Document.Form.message.Value = Text3.Text
    19. End Sub
    20.  
    21. Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
    22.     Text1.Enabled = True
    23.     Text2.Enabled = True
    24.     Command1.Enabled = True
    25.     Text3.Enabled = True
    26. End Sub

    Here is an example: (Edit:Added example buttons)
    Attached Files Attached Files
    Last edited by wiz126; Mar 14th, 2006 at 07:09 PM.
    1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
    2) If someone has been useful to you please show your respect by rating their posts.
    3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
    4) Before posting your question, make sure you checked this links:
    MICROSOFT MSDN -- VB FORUMS SEARCH

    5)Support Classic VB - A PETITION TO MICROSOFT

    ___________________________________________________________________________________
    THINGS TO KNOW ABOUT VB: || VB Examples/Demos
    What are Classes?
    || -
    Where to place a sub/function?(global) || Webbrowser control

  3. #3

    Thread Starter
    Addicted Member jeroen_12's Avatar
    Join Date
    Jul 2005
    Posts
    152

    Re: Webbrowser post

    WOW GREATE !! thanks


  4. #4
    Frenzied Member wiz126's Avatar
    Join Date
    Jul 2005
    Location
    Mars,Milky Way... Chit Chat Posts: 5,733
    Posts
    1,080

    Re: Webbrowser post

    Quote Originally Posted by jeroen_12
    WOW GREATE !! thanks
    I am happy it helped,

    Since you resolved the thread go to : Thread Tools --> Mark Thread Resolved
    1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
    2) If someone has been useful to you please show your respect by rating their posts.
    3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
    4) Before posting your question, make sure you checked this links:
    MICROSOFT MSDN -- VB FORUMS SEARCH

    5)Support Classic VB - A PETITION TO MICROSOFT

    ___________________________________________________________________________________
    THINGS TO KNOW ABOUT VB: || VB Examples/Demos
    What are Classes?
    || -
    Where to place a sub/function?(global) || Webbrowser control

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