|
-
Jan 6th, 2015, 01:51 AM
#1
Thread Starter
Junior Member
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.
-
Jan 6th, 2015, 03:43 AM
#2
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
-
Jan 6th, 2015, 04:13 AM
#3
Thread Starter
Junior Member
Re: VB6 Classic - WebBrowser button click detect
 Originally Posted by westconn1
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.
-
Jan 6th, 2015, 03:15 PM
#4
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?
-
Jan 6th, 2015, 03:18 PM
#5
Thread Starter
Junior Member
Re: VB6 Classic - WebBrowser button click detect
 Originally Posted by SamOscarBrown
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.
-
Jan 6th, 2015, 03:19 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|