Results 1 to 6 of 6

Thread: VB6 Classic - WebBrowser button click detect

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2014
    Location
    Brisbane
    Posts
    19

    VB6 Classic - WebBrowser button click detect

    Hi,

    I need to detect when a Webbrowser HTML page button (RetrieveButton) has been clicked by the user. Can anyone help with a bit of code, please.

    Thank you.

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: VB6 Classic - WebBrowser button click detect

    what webbrowser is this?
    your software? internet explorer? other?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2014
    Location
    Brisbane
    Posts
    19

    Re: VB6 Classic - WebBrowser button click detect

    Quote Originally Posted by westconn1 View Post
    what webbrowser is this?
    your software? internet explorer? other?

    Yes, the standard Webbrowser, available in VB6.
    Last edited by TJones61; Jan 6th, 2015 at 05:13 AM.

  4. #4
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,622

    Re: VB6 Classic - WebBrowser button click detect

    What is the RetrieveButton? Is it a button on some particular website, or some commandbutton you placed on your Webbrowser?

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Sep 2014
    Location
    Brisbane
    Posts
    19

    Re: VB6 Classic - WebBrowser button click detect

    Quote Originally Posted by SamOscarBrown View Post
    What is the RetrieveButton? Is it a button on some particular website, or some commandbutton you placed on your Webbrowser?
    It's a standard HTML button.

  6. #6
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,622

    Re: VB6 Classic - WebBrowser button click detect

    If the former, this code written in .Net might give you the hint on how to find the control that gets the focus (hence the button) and detect when it is clicked:

    http://www.experts-exchange.com/Prog..._23582209.html

Tags for this Thread

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